2000-05-21 08:41:19 +00:00
|
|
|
--- Makefile.common.orig Tue May 16 10:14:14 2000
|
|
|
|
+++ Makefile.common Sat May 20 00:00:00 2000
|
|
|
|
@@ -97,24 +97,20 @@
|
|
|
|
# BUILDING NETPBM LIBRARIES
|
2000-05-19 08:34:13 +00:00
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
$(LIBOBJECTS): %.o: %.c
|
|
|
|
+ $(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $<
|
|
|
|
+
|
2000-05-19 08:34:13 +00:00
|
|
|
+$(LIBSOBJECTS): %.so: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $(CFLAGS_SHLIB) $(INCLUDE) -o $@ $<
|
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
-SONAME = lib$(LIBROOT).so.$(MAJ)
|
|
|
|
+SONAME = lib$(LIBROOT).so.$(SOVER)
|
2000-04-08 06:12:34 +00:00
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
# The libxxx.so link is needed to link the executables.
|
|
|
|
-lib$(LIBROOT).so: $(SONAME)
|
|
|
|
- rm -f $@
|
|
|
|
- ln -s $< $@
|
|
|
|
-# The $(SONAME) link is only needed to test the programs without
|
|
|
|
-# installing the libraries (in that case, you also need to direct the
|
|
|
|
-# dynamic linker to the source directories, e.g. set LD_LIBRARY_PATH).
|
|
|
|
-$(SONAME): lib$(LIBROOT).so.$(MAJ).$(MIN)
|
|
|
|
+lib$(LIBROOT).so: $(SONAME) lib$(LIBROOT).a
|
|
|
|
rm -f $@
|
|
|
|
- ln -s $< $@
|
|
|
|
-lib$(LIBROOT).so.$(MAJ).$(MIN): $(LIBOBJECTS) $(LIBOBJECTS_X) $(LIBLIBS) \
|
|
|
|
- $(LIBOPT)
|
|
|
|
- $(LD) $(LDSHLIB) -o $@ $(LIBOBJECTS) $(LIBOBJECTS_X) \
|
|
|
|
- `$(LIBOPT) $(LIBLIBS)` -lc
|
|
|
|
+ ln -sf $< $@
|
|
|
|
+$(SONAME): $(LIBSOBJECTS) $(LIBOBJECTS_X) $(LIBLIBS) $(LIBOPT)
|
|
|
|
+ $(LD) $(LDSHLIB) -o $@ $(LIBSOBJECTS) $(LIBOBJECTS_X) \
|
|
|
|
+ `$(LIBOPT) $(LIBLIBS)`
|
2000-04-08 06:12:34 +00:00
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
# Static library. Unused by default, but with a small change to make files...
|
|
|
|
lib$(LIBROOT).a: $(LIBOBJECTS) $(LIBOBJECTS_X)
|
|
|
|
@@ -129,15 +125,14 @@
|
|
|
|
install.merge.common: $(MERGENAME) $(NOMERGEBINARIES) install.script
|
2000-05-19 08:34:13 +00:00
|
|
|
cd $(INSTALLBINARIES) ; rm -f $(BINARIES) $(MERGE_ALIASES)
|
2000-04-07 21:54:04 +00:00
|
|
|
ifneq ($(MERGENAME)x,x)
|
2000-05-19 08:34:13 +00:00
|
|
|
- $(INSTALL) -s -m$(INSTALL_PERM_BIN) $(MERGENAME) $(INSTALLBINARIES)
|
2000-04-01 23:57:38 +00:00
|
|
|
+ ${BSD_INSTALL_PROGRAM} $(MERGENAME) $(INSTALLBINARIES)
|
|
|
|
cd $(INSTALLBINARIES) ; \
|
2000-05-21 08:41:19 +00:00
|
|
|
for i in $(MERGEBINARIES) $(MERGE_ALIASES) ; \
|
2000-05-19 08:34:13 +00:00
|
|
|
- do ln -s $(MERGENAME)$(EXE) $$i ; \
|
|
|
|
+ do ln -sf $(MERGENAME)$(EXE) $$i ; \
|
2000-04-07 21:54:04 +00:00
|
|
|
done
|
|
|
|
endif
|
|
|
|
ifneq ($(NOMERGEBINARIES)x,x)
|
2000-05-19 08:34:13 +00:00
|
|
|
- $(INSTALL) -s -m$(INSTALL_PERM_BIN) \
|
|
|
|
- $(NOMERGEBINARIES) $(INSTALLBINARIES)
|
2000-04-01 23:57:38 +00:00
|
|
|
+ ${BSD_INSTALL_PROGRAM} $(NOMERGEBINARIES) $(INSTALLBINARIES)
|
2000-04-07 21:54:04 +00:00
|
|
|
endif
|
2000-04-01 23:57:38 +00:00
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
# INSTALLING
|
|
|
|
@@ -146,12 +141,12 @@
|
2000-04-01 23:57:38 +00:00
|
|
|
install.bin.common: $(BINARIES) install.script
|
2000-05-19 08:34:13 +00:00
|
|
|
# Note that on Cygwin, the executables are actually pbmmake.exe, etc.
|
|
|
|
# Make and Install know that pbmmake.exe counts as pbmmake.
|
|
|
|
- $(INSTALL) -s -m$(INSTALL_PERM_BIN) $(BINARIES) $(INSTALLBINARIES)
|
2000-04-01 23:57:38 +00:00
|
|
|
+ ${BSD_INSTALL_PROGRAM} $(BINARIES) $(INSTALLBINARIES)
|
|
|
|
|
|
|
|
.PHONY: install.script
|
|
|
|
install.script: $(SCRIPTS)
|
|
|
|
ifneq ($(SCRIPTS)x,x)
|
2000-05-19 08:34:13 +00:00
|
|
|
- $(INSTALL) -m$(INSTALL_PERM_BIN) $(SCRIPTS) $(INSTALLSCRIPTS)
|
2000-04-01 23:57:38 +00:00
|
|
|
+ ${BSD_INSTALL_SCRIPT} $(SCRIPTS) $(INSTALLSCRIPTS)
|
|
|
|
endif
|
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
.PHONY: install.man.common
|
|
|
|
@@ -181,8 +176,7 @@
|
2000-05-19 08:34:13 +00:00
|
|
|
# compile programs that use the Netpbm libraries. Alternatively, you may
|
2000-04-01 23:57:38 +00:00
|
|
|
# prefer not to "install" them, but just to access the Netpbm source
|
|
|
|
# directory when you compile your programs.
|
2000-05-19 08:34:13 +00:00
|
|
|
- $(INSTALL) -m$(INSTALL_PERM_HDR) \
|
|
|
|
- $(INTERFACE_HEADERS) $(INSTALLHDRS)
|
2000-04-01 23:57:38 +00:00
|
|
|
+ ${BSD_INSTALL_DATA} $(INTERFACE_HEADERS) $(INSTALLHDRS)
|
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
# Install a static library
|
|
|
|
#
|
|
|
|
@@ -192,16 +186,15 @@
|
|
|
|
# library, the dependency here will do that.
|
|
|
|
.PHONY: install.staticlib
|
|
|
|
install.staticlib: lib$(LIBROOT).a
|
|
|
|
- $(INSTALL) -m$(INSTALL_PERM_LIBS) $< $(INSTALLLIBS)/$<
|
|
|
|
+ ${BSD_INSTALL_DATA} $< $(INSTALLLIBS)
|
2000-04-01 23:57:38 +00:00
|
|
|
|
2000-04-07 21:54:04 +00:00
|
|
|
.PHONY: install.lib.common
|
2000-05-21 08:41:19 +00:00
|
|
|
ifeq ($(NETPBMLIBSUFFIX),so)
|
|
|
|
# install a shared library
|
2000-04-07 21:54:04 +00:00
|
|
|
-install.lib.common: lib$(LIBROOT).so.$(MAJ).$(MIN)
|
2000-04-01 23:57:38 +00:00
|
|
|
- cd $(INSTALLLIBS) ; rm -f lib$(LIBROOT).so.$(MAJ).*
|
2000-05-19 08:34:13 +00:00
|
|
|
- $(INSTALL) -m$(INSTALL_PERM_LIBD) $< $(INSTALLLIBS)
|
|
|
|
- cd $(INSTALLLIBS) ; rm -f lib$(LIBROOT).so; ln -s $< lib$(LIBROOT).so
|
2000-05-21 08:41:19 +00:00
|
|
|
- cd $(INSTALLLIBS) ; rm -f $(SONAME); ln -s $< $(SONAME)
|
|
|
|
+install.lib.common: $(SONAME)
|
|
|
|
+ cd $(INSTALLLIBS) ; rm -f lib$(LIBROOT).so.*
|
|
|
|
+ ${BSD_INSTALL_DATA} $< $(INSTALLLIBS)
|
|
|
|
+ cd $(INSTALLLIBS) ; rm -f lib$(LIBROOT).so; ln -sf $< lib$(LIBROOT).so
|
|
|
|
endif
|
2000-04-01 23:57:38 +00:00
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
.PHONY: clean.common
|