CXX = g++296 INCLUDES = -I./include -I/usr/local/include LDLIBS += -lSPU-Toolbox -lpthread -lX11 -lXext -ljpeg LDPATH = -L./lib -L/usr/X11R6/lib LDFLAGS = $(LDPATH) $(LDLIBS) CXXFLAGS += $(INCLUDES) CXXFLAGS += -g CXXFLAGS += -Wall CXXFLAGS += -D_REENTRANT ifeq (n, y) CXXFLAGS += -O3 endif main_video: main_video.o DPPTUPoint.o $(CXX) DPPTUPoint.o -o $@ `SPU-Toolbox-config --cflags` $@.cc `SPU-Toolbox-config --libs` dpptu-demo: DPPTUPoint.o dpptu-demo.o $(CXX) DPPTUPoint.o -o $@ `SPU-Toolbox-config --cflags` $@.cc `SPU-Toolbox-config --libs` duckhunt: duckhunt.o $(CXX) duckhunt.o -o $@ `SPU-Toolbox-config --cflags` $@.cc `SPU-Toolbox-config --libs` .cc: $(CXX) -o $@ `SPU-Toolbox-config --cflags` $@.cc `SPU-Toolbox-config --libs` .o: $@.cc $@.h $(CXX) -o $@ `SPU-Toolbox-config --cflags` $@.cc `SPU-Toolbox-config --libs` clean: rm *.o rm main_video