summaryrefslogtreecommitdiff
blob: 3309d66b48e9b66192b6d162aeb03fa915776cfd (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
--- Makefile.old	2011-02-09 15:16:03.057306516 +0100
+++ Makefile	2011-02-09 15:24:47.773973182 +0100
@@ -1,21 +1,21 @@
 CC=g++
-LEPTONICA=../leptonlib-1.67
+LEPTONICA=/usr/include/leptonica
 # For example, a fink MacOSX install:
 # EXTRA=-I/sw/include/ -I/sw/include/libpng -I/sw/include/libjpeg -L/sw/lib
-CFLAGS=-I${LEPTONICA}/src -Wall -I/usr/include -L/usr/lib -O3 ${EXTRA}
+LOCALFLAGS=-I${LEPTONICA} -Wall -I/usr/include -L/usr/lib
 
 jbig2: libjbig2enc.a jbig2.cc
-	$(CC) -o jbig2 jbig2.cc -L. -ljbig2enc ${LEPTONICA}/src/.libs/liblept.a $(CFLAGS) -lpng -ljpeg -ltiff -lm -lz
+	$(CC) -o jbig2 jbig2.cc -L. -ljbig2enc $(LOCALFLAGS) $(LDFLAGS) -llept -lpng -ljpeg -ltiff -lm -lz
 
 libjbig2enc.a: jbig2enc.o jbig2arith.o jbig2sym.o
 	ar -rcv libjbig2enc.a jbig2enc.o jbig2arith.o jbig2sym.o
 
 jbig2enc.o: jbig2enc.cc jbig2arith.h jbig2sym.h jbig2structs.h jbig2segments.h
-	$(CC) -c jbig2enc.cc $(CFLAGS)
+	$(CC) -c jbig2enc.cc $(LOCALFLAGS) $(CFLAGS)
 jbig2arith.o: jbig2arith.cc jbig2arith.h
-	$(CC) -c jbig2arith.cc $(CFLAGS)
+	$(CC) -c jbig2arith.cc $(LOCALFLAGS) $(CFLAGS)
 jbig2sym.o: jbig2sym.cc jbig2arith.h
-	$(CC) -c jbig2sym.cc -DUSE_EXT $(CFLAGS)
+	$(CC) -c jbig2sym.cc -DUSE_EXT $(LOCALFLAGS) $(CFLAGS)
 
 clean:
 	rm -f *.o jbig2 libjbig2enc.a