1# 2# Makefile (C) 2006, Aurélien Croc (AP²C) 3# 4# This project has been placed under the GPL Licence. 5# 6 7CXXFLAGS += -I../include -Wall -g -O0 8LDFLAGS += -lcups -lcupsimage 9 10OBJECTS := spl2.o printer.o band.o compress.o bandanalyser.o 11HEADERS := include/spl2.h include/document.h include/printer.h \ 12 include/error.h include/band.h include/raster.h \ 13 include/bandanalyser.h 14 15 16all: rastertospl2 17rastertospl2: $(OBJECTS) rastertospl2.o raster.o 18 $(CXX) $(LDFLAGS) -o $@ $^ 19 20pbmtospl2: $(OBJECTS) pbmtospl2.o pbmimage.o 21 $(CXX) $(LDFLAGS) -o $@ $^ 22 23%.o: %.cpp $(HEADERS) 24 $(CXX) $(CXXFLAGS) -c $< 25 26install: rastertospl2 27 install -m 755 -s rastertospl2 ${CUPSFILTER} 28 29.PHONY: clean distclean 30clean: 31 $(RM) *.o 32 33distclean: clean 34 $(RM) rastertospl2 pbmtospl2 35 36