# Copyright (c) 1999-2005 # Motorola, Inc., ALL RIGHTS RESERVED SOURCES := \ CairoTest.cpp OBJECTS := $(SOURCES:.cpp=.o) PKG_CONFIG_PATH=/opt/cairo-head/lib/pkgconfig CC =/usr/bin/g++ CFLAGS = `pkg-config --cflags libsvg-cairo` LIB_PATH = `pkg-config --libs libsvg-cairo` LIBS = -lcairo -lsvg-cairo DFLAGS = -g 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