Lines 1-6
Link Here
|
1 |
--- lib/Makefile.orig Wed Jun 12 13:00:32 2002 |
1 |
--- lib/Makefile.orig Thu Sep 19 12:58:41 2002 |
2 |
+++ lib/Makefile Tue Jun 18 00:00:00 2002 |
2 |
+++ lib/Makefile Sat Oct 5 00:00:00 2002 |
3 |
@@ -31,12 +31,14 @@ |
3 |
@@ -32,14 +32,16 @@ |
4 |
# Library objects to be linked but not built by Makefile.common: |
4 |
# Library objects to be linked but not built by Makefile.common: |
5 |
LIBOBJECTS_X = util/shhopt.o util/nstring.o |
5 |
LIBOBJECTS_X = util/shhopt.o util/nstring.o |
6 |
|
6 |
|
Lines 15-23
Link Here
|
15 |
+ pgm.h ppm.h ppm.h ppmcmap.h ppmdraw.h ppmfloyd.h colorname.h \ |
15 |
+ pgm.h ppm.h ppm.h ppmcmap.h ppmdraw.h ppmfloyd.h colorname.h \ |
16 |
+ pnm.h pam.h pammap.h util/pm_shhopt.h util/pm_nstring.h |
16 |
+ pnm.h pam.h pammap.h util/pm_shhopt.h util/pm_nstring.h |
17 |
|
17 |
|
|
|
18 |
-DATAFILE = rgb.txt |
19 |
+DATAFILES = rgb.txt |
20 |
|
18 |
HEADERLINKS = pm_config.h version.h compile.h shhopt.h |
21 |
HEADERLINKS = pm_config.h version.h compile.h shhopt.h |
19 |
|
22 |
|
20 |
@@ -57,6 +59,9 @@ |
23 |
@@ -69,12 +71,15 @@ |
21 |
|
24 |
|
22 |
$(LIBOBJECTS): %.o: %.c $(HEADERLINKS) |
25 |
$(LIBOBJECTS): %.o: %.c $(HEADERLINKS) |
23 |
# Note that the user may have configured -I options into CFLAGS. |
26 |
# Note that the user may have configured -I options into CFLAGS. |
Lines 26-33
Link Here
|
26 |
+$(SHLIBOBJECTS): %.lo: %.c $(HEADERLINKS) |
29 |
+$(SHLIBOBJECTS): %.lo: %.c $(HEADERLINKS) |
27 |
$(CC) -c $(INCLUDE) $(CFLAGS) $(CFLAGS_SHLIB) $(CADD) -o $@ $< |
30 |
$(CC) -c $(INCLUDE) $(CFLAGS) $(CFLAGS_SHLIB) $(CADD) -o $@ $< |
28 |
|
31 |
|
29 |
SUBDIRS = util |
|
|
30 |
@@ -67,7 +72,7 @@ |
31 |
MAJ = $(NETPBM_MAJOR_RELEASE) |
32 |
MAJ = $(NETPBM_MAJOR_RELEASE) |
32 |
MIN = $(NETPBM_MINOR_RELEASE) |
33 |
MIN = $(NETPBM_MINOR_RELEASE) |
33 |
|
34 |
|
Lines 36-42
Link Here
|
36 |
|
37 |
|
37 |
ifeq ($(NETPBMLIBTYPE),irixshared) |
38 |
ifeq ($(NETPBMLIBTYPE),irixshared) |
38 |
# The libxxx.so link is needed to link the executables. |
39 |
# The libxxx.so link is needed to link the executables. |
39 |
@@ -97,12 +102,9 @@ |
40 |
@@ -98,12 +103,9 @@ |
40 |
# The $(SONAME) link is only needed to test the programs without |
41 |
# The $(SONAME) link is only needed to test the programs without |
41 |
# installing the libraries (in that case, you also need to direct the |
42 |
# installing the libraries (in that case, you also need to direct the |
42 |
# dynamic linker to the source directories, e.g. set LD_LIBRARY_PATH). |
43 |
# dynamic linker to the source directories, e.g. set LD_LIBRARY_PATH). |
Lines 45-58
Link Here
|
45 |
- $(SYMLINK) $< $@ |
46 |
- $(SYMLINK) $< $@ |
46 |
-libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).$(MIN): $(LIBOBJECTS) $(LIBOBJECTS_X) |
47 |
-libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).$(MIN): $(LIBOBJECTS) $(LIBOBJECTS_X) |
47 |
- $(LD) $(LDSHLIB) -o $@ $(LIBOBJECTS) $(LIBOBJECTS_X) \ |
48 |
- $(LD) $(LDSHLIB) -o $@ $(LIBOBJECTS) $(LIBOBJECTS_X) \ |
48 |
- -lc $(CADD) |
49 |
- -lc $(LADD) |
49 |
+$(SONAME): $(SHLIBOBJECTS) $(LIBOBJECTS_X) |
50 |
+$(SONAME): $(SHLIBOBJECTS) $(LIBOBJECTS_X) |
50 |
+ $(LD) $(LDSHLIB) -o $@ $(SHLIBOBJECTS) $(LIBOBJECTS_X) \ |
51 |
+ $(LD) $(LDSHLIB) -o $@ $(SHLIBOBJECTS) $(LIBOBJECTS_X) \ |
51 |
+ $(CADD) |
52 |
+ $(LADD) |
52 |
endif |
53 |
endif |
53 |
|
54 |
|
54 |
ifeq ($(NETPBMLIBTYPE),dll) |
55 |
ifeq ($(NETPBMLIBTYPE),dll) |
55 |
@@ -181,13 +183,10 @@ |
56 |
@@ -180,13 +182,10 @@ |
56 |
.PHONY: install.lib |
57 |
.PHONY: install.lib |
57 |
ifeq ($(NETPBMLIBTYPE),unixshared) |
58 |
ifeq ($(NETPBMLIBTYPE),unixshared) |
58 |
# install a Unix-style shared library |
59 |
# install a Unix-style shared library |
Lines 70-76
Link Here
|
70 |
endif |
71 |
endif |
71 |
ifeq ($(NETPBMLIBTYPE),dll) |
72 |
ifeq ($(NETPBMLIBTYPE),dll) |
72 |
#install a Windows DLL shared library |
73 |
#install a Windows DLL shared library |
73 |
@@ -217,23 +216,23 @@ |
74 |
@@ -216,23 +215,23 @@ |
74 |
# directory when you compile your programs. |
75 |
# directory when you compile your programs. |
75 |
|
76 |
|
76 |
%_installhdr: $(PKGDIR)/include |
77 |
%_installhdr: $(PKGDIR)/include |