diff -urN splix-1.0.1-1.orig/Makefile splix-1.0.1-1/Makefile --- splix-1.0.1-1.orig/Makefile 2007-02-10 15:20:18.000000000 +0100 +++ splix-1.0.1-1/Makefile 2007-10-14 16:18:05.000000000 +0200 @@ -4,10 +4,10 @@ # This project has been placed under the GPL Licence. # -CXXFLAGS := -O2 `cups-config --cflags` -LDFLAGS := `cups-config --ldflags` -CUPSFILTER := `cups-config --serverbin`/filter -CUPSPPD := `cups-config --datadir`/model +CXXFLAGS += +LDFLAGS += +CUPSFILTER := $(DESTDIR)`cups-config --serverbin`/filter +CUPSPPD := $(DESTDIR)`cups-config --datadir`/model # === DON'T CHANGE ANYTHING AFTER THIS MESSAGE ==== diff -urN splix-1.0.1-1.orig/src/Makefile splix-1.0.1-1/src/Makefile --- splix-1.0.1-1.orig/src/Makefile 2007-02-10 15:20:18.000000000 +0100 +++ splix-1.0.1-1/src/Makefile 2007-10-14 17:18:31.000000000 +0200 @@ -4,8 +4,8 @@ # This project has been placed under the GPL Licence. # -CXXFLAGS += -I../include -Wall -g -O0 -LDFLAGS += -lcups -lcupsimage +CXXFLAGS += -I../include -Wall +LDADD += -lcups -lcupsimage OBJECTS := spl2.o printer.o band.o compress.o bandanalyser.o HEADERS := include/spl2.h include/document.h include/printer.h \ @@ -15,16 +15,16 @@ all: rastertospl2 rastertospl2: $(OBJECTS) rastertospl2.o raster.o - $(CXX) $(LDFLAGS) -o $@ $^ + $(CXX) $(LDFLAGS) -o $@ $^ $(LDADD) pbmtospl2: $(OBJECTS) pbmtospl2.o pbmimage.o - $(CXX) $(LDFLAGS) -o $@ $^ + $(CXX) $(LDFLAGS) -o $@ $^ $(LDADD) %.o: %.cpp $(HEADERS) $(CXX) $(CXXFLAGS) -c $< install: rastertospl2 - install -m 755 -s rastertospl2 ${CUPSFILTER} + install -m 755 rastertospl2 ${CUPSFILTER} .PHONY: clean distclean clean: