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 8LDFLAGS += -lcups -lcupsimage 9 10OBJECTS := spl2.o printer.o band.o compress.o 11HEADERS := include/spl2.h include/document.h include/printer.h \ 12 include/error.h include/band.h include/raster.h 13 14 15all: rastertospl2 16rastertospl2: $(OBJECTS) rastertospl2.o raster.o 17 $(CXX) $(LDFLAGS) -o $@ $^ 18 19%.o: %.cpp $(HEADERS) 20 $(CXX) $(CXXFLAGS) -c $< 21 22install: rastertospl2 23 install -m 755 -s rastertospl2 ${CUPSFILTER} 24 25.PHONY: clean distclean 26clean: 27 $(RM) *.o 28 29distclean: clean 30 $(RM) rastertospl2 31 32