summaryrefslogtreecommitdiff
blob: 8e659d9c7ccf01f4305ff7d41ff27542cdc9b9fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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: