How to execute a c++ prog in linux environment by using make ?
How to execute a c++ prog in linux environment by using make ?
Hi,
c++ programs compiled using GCC.
Make is build script to create an executable/shared library
For More info "http://www.gnu.org/software/make/"
http://www.gnu.org/software/make/manual/make.html
http://gcc.gnu.org/
# The following lines are required because standard make does not
# recognize the Objective-C .m suffix.
.SUFFIXES: .o .m
.m.o:
$(CC) -c $(CFLAGS) $<
# Macros
CC = gcc
CFLAGS = -g
LIBS = -lobjc
# Explicit rule
hist: $(OBJ)
$(CC) $(CFLAGS) -o main main.c