qjpeg/Makefile
author viric@llimona
Mon, 22 Jan 2007 00:45:57 +0100
changeset 76 9cbf4c7e7986
child 78 a55bf2fa3f74
permissions -rw-r--r--
First classes for the qjpeg project.

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