# The name of the final executable EXECUTABLE=if_usage # If you have more source files add them here SOURCE = if_usage.cpp int64type.cpp # The compiler we're using CC= g++ # linker LINK= libtool # compiler flags CFLAGS= -O3 -Wall #CFLAGS= -O3 #CFLAGS= -Wall # include path IFLAGS= LFLAGS= LINKFLAGS= /usr/local/lib/libgd.la OBJECT= $(SOURCE:.cpp=.o) all: $(OBJECT) depend $(LINK) --mode=link $(CC) -o $(EXECUTABLE) $(CFLAGS) $(OBJECT) $(LINKFLAGS) depend: $(CC) -M $(SOURCE) $(IFLAGS) $(LFLAGS) > depend $(OBJECT): $(CC) $(CFLAGS) $(IFLAGS) $(LFLAGS) -c -o $@ $(@:.o=.cpp) clean_object: rm -f $(OBJECT) clean: rm -f $(OBJECT) depend $(EXECUTABLE) *.*~ *~ include depend