--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/qjpeg/Makefile Mon Jan 22 00:45:57 2007 +0100
@@ -0,0 +1,23 @@
+CXXFLAGS?=-Wall -g
+
+.o:
+ $(CXX) $(LDFLAGS) $(LIBS) -o $@ $^
+
+# Tests
+tests: testFP testJPEGFile
+
+testFP: testFP.o FloatPlane.o
+ $(CXX) $(LDFLAGS) -lnetpbm -o $@ $^
+testJPEGFile: testJPEGFile.o FloatPlane.o Image.o JPEGFile.o
+ $(CXX) $(LDFLAGS) -lnetpbm -ljpeg -o $@ $^
+testFP.o: testFP.cpp FloatPlane.h
+testJPEGFile.o: testFP.cpp FloatPlane.h
+testJPEGFile.o: testJPEGFile.cpp Image.h JPEGFile.h
+
+# API
+FloatPlane.o: FloatPlane.cpp FloatPlane.h
+Image.o: Image.cpp FloatPlane.h Image.h
+JPEGFile.o: JPEGFile.cpp JPEGFile.h FloatPlane.h Image.h
+
+clean:
+ rm -f *.o testFP