Lines 1-61
Link Here
|
1 |
--- Makefile.orig Tue Apr 9 19:37:13 2002 |
1 |
--- Makefile 2014-03-27 14:47:15.000000000 -0400 |
2 |
+++ Makefile Tue Apr 9 22:45:53 2002 |
2 |
+++ Makefile 2014-04-08 08:37:59.000000000 -0400 |
3 |
@@ -2,13 +2,13 @@ |
3 |
@@ -2,12 +2,10 @@ |
4 |
# $Id: Makefile,v 1.12 2002-04-09 11:37:13+01 mgk25 Exp $ |
|
|
5 |
|
4 |
|
6 |
# Select an ANSI/ISO C compiler here, GNU gcc is recommended |
5 |
# Select an ANSI/ISO C compiler here, GNU gcc is recommended |
7 |
-CC = gcc |
6 |
-CC = gcc |
8 |
+#CC = gcc |
7 |
+#CC = gcc |
9 |
|
8 |
|
10 |
# Options for the compiler: A high optimization level is suggested |
9 |
# Options for the compiler: A high optimization level is suggested |
11 |
-CCFLAGS = -O2 -W |
10 |
-CFLAGS = -O2 -W -Wno-unused-result |
12 |
+#CCFLAGS = -O2 -W |
11 |
+CFLAGS += -W # -Wno-unused-result -- older compilers don't have this |
13 |
#CCFLAGS = -O -g -W -Wall -ansi -pedantic #-DDEBUG # developer only |
12 |
# CFLAGS = -O -g -W -Wall -Wno-unused-result -ansi -pedantic # -DDEBUG |
14 |
|
13 |
|
15 |
-CFLAGS = $(CCFLAGS) -I../libjbig |
14 |
-export CC CFLAGS |
16 |
+CFLAGS += -I../libjbig |
15 |
- |
|
|
16 |
VERSION=2.1 |
17 |
|
17 |
|
18 |
VERSION=1.4 |
|
|
19 |
|
20 |
@@ -16,14 +16,14 @@ |
21 |
@echo "Enter 'make test' in order to start some automatic tests." |
22 |
|
23 |
lib: |
24 |
- (cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)") |
25 |
+ (cd libjbig; $(MAKE) "CC=$(CC)" "CFLAGS=$(CFLAGS)") |
26 |
|
27 |
pbm: lib |
28 |
- (cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)") |
29 |
+ (cd pbmtools; $(MAKE) "CC=$(CC)" "CFLAGS=$(CFLAGS)") |
30 |
|
31 |
test: lib pbm |
32 |
- (cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test) |
33 |
- (cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test) |
34 |
+ (cd libjbig; $(MAKE) "CC=$(CC)" "CFLAGS=$(CFLAGS)" test) |
35 |
+ (cd pbmtools; $(MAKE) "CC=$(CC)" "CFLAGS=$(CFLAGS)" test) |
36 |
|
37 |
clean: |
38 |
rm -f *~ core |
39 |
@@ -36,3 +36,22 @@ |
40 |
gzip -9f jbigkit-$(VERSION).tar ) |
41 |
mv ../jbigkit-$(VERSION).tar.gz $(HOME)/public_html/download/ |
42 |
cp CHANGES $(HOME)/public_html/jbigkit/ |
43 |
+ |
44 |
+install: |
45 |
+ mkdir -p $(DESTDIR)${PREFIX}/bin |
46 |
+ ${BSD_INSTALL_PROGRAM} pbmtools/jbgtopbm pbmtools/pbmtojbg \ |
47 |
+ $(DESTDIR)${PREFIX}/bin |
48 |
+ mkdir -p $(DESTDIR)${PREFIX}/man/man1 |
49 |
+ ${BSD_INSTALL_MAN} pbmtools/pbmtojbg.1 pbmtools/jbgtopbm.1 \ |
50 |
+ $(DESTDIR)${PREFIX}/man/man1 |
51 |
+ # mkdir -p $(DESTDIR)${PREFIX}/man/man5 |
52 |
+ # Not installing the pbm(5) man page, because BSD has its own |
53 |
+ # install -c -m 644 -o bin -g bin pbmtools/pbm.5 ${PREFIX}/man/man5 |
54 |
+ # Not installing the pgm(5) man page for it comes with netpbm port |
55 |
+ # install -c -m 644 -o bin -g bin pbmtools/pgm.5 ${PREFIX}/man/man5 |
56 |
+ mkdir -p $(DESTDIR)${PREFIX}/include |
57 |
+ ${BSD_INSTALL_DATA} libjbig/jbig.h $(DESTDIR)${PREFIX}/include |
58 |
+ mkdir -p $(DESTDIR)${PREFIX}/lib |
59 |
+ ${BSD_INSTALL_DATA} libjbig/libjbig.a $(DESTDIR)${PREFIX}/lib |
60 |
+ ${BSD_INSTALL_DATA} libjbig/libjbig.so.1 $(DESTDIR)${PREFIX}/lib |
61 |
+ ln -sf libjbig.so.1 $(DESTDIR)${PREFIX}/lib/libjbig.so |