# Copyright (c) 1999-2005 # Motorola, Inc., ALL RIGHTS RESERVED SOURCES := \ CairoTest.cpp OBJECTS := $(SOURCES:.cpp=.o) CC =/usr/bin/g++ CFLAGS = -I ./cairo -ansi LIB_PATH = -L ./libs LIBS = -lcairo -lsvg-cairo DFLAGS = -g -pedantic #DEFINES = -DLINUX -DGCC_296 -DDEBUG DEFINES = -DLINUX DESTDIR = . # ############################################### # # Clear the vpath # vpath %.cpp vpath %.h vpath %.hpp vpath %.d vpath %.o # # Set the vpath # vpath %.cpp . vpath %.d . vpath %.o . all: $(OBJECTS) # quantify $(CC) $(DFLAGS) $(DEFINES) $(CFLAGS) -g -o MyTest *.o $(LIB_PATH) $(LIBS) # purify $(CC) $(DFLAGS) $(DEFINES) $(CFLAGS) -g -o MyTest *.o $(LIB_PATH) $(LIBS) $(CC) $(DFLAGS) $(DEFINES) $(CFLAGS) -g -o MyTest *.o $(LIB_PATH) $(LIBS) # # Create a rule to build dependency files # (straight from the Make online manual) # %.d: %.cpp @echo "Creating dependency file $(notdir $@)" @"$(SHELL)" -ec '$(CC) $(DFLAGS) $(DEFINES) $(CFLAGS) -MM $< ' > ./$@ # # Include all the dependency files. The - is so that we don't see warnings # about the file not existing. When this happens the depend rule is kicked # to create it. # ifneq ($(MAKECMDGOALS), clean) DFILES = $(SOURCES:.cpp=.d) -include ./$(DFILES) endif # # # %.o: %.cpp @echo "Compiling $(notdir $@)" @$(CC) -g -c $(DFLAGS) $(DEFINES) $(CFLAGS) -o ./$(notdir $@) $< # # # clean: @rm -f *.[od] *.so