2000-07-15 17:04:36 +00:00
|
|
|
--- Makefile.common.orig Sat Jul 8 06:14:26 2000
|
|
|
|
+++ Makefile.common Sat Jul 15 00:00:00 2000
|
|
|
|
@@ -103,24 +103,20 @@
|
2000-05-19 08:34:13 +00:00
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
$(LIBOBJECTS): %.o: %.c
|
2000-07-15 17:04:36 +00:00
|
|
|
# Note that the user may have configured -I options into CFLAGS.
|
|
|
|
+ $(CC) -c $(INCLUDE) $(CFLAGS) -o $@ $<
|
2000-05-21 08:41:19 +00:00
|
|
|
+
|
2000-07-15 17:04:36 +00:00
|
|
|
+$(SHLIBOBJECTS): %.lo: %.c
|
|
|
|
$(CC) -c $(INCLUDE) $(CFLAGS) $(CFLAGS_SHLIB) -o $@ $<
|
2000-05-19 08:34:13 +00:00
|
|
|
|
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.
|
2000-06-04 22:36:27 +00:00
|
|
|
lib$(LIBROOT).so: $(SONAME)
|
|
|
|
rm -f $@
|
|
|
|
ln -s $< $@
|
2000-05-21 08:41:19 +00:00
|
|
|
-# 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)
|
2000-06-04 22:36:27 +00:00
|
|
|
- rm -f $@
|
2000-05-21 08:41:19 +00:00
|
|
|
- ln -s $< $@
|
|
|
|
-lib$(LIBROOT).so.$(MAJ).$(MIN): $(LIBOBJECTS) $(LIBOBJECTS_X) $(LIBLIBS) \
|
|
|
|
- $(LIBOPT)
|
|
|
|
- $(LD) $(LDSHLIB) -o $@ $(LIBOBJECTS) $(LIBOBJECTS_X) \
|
|
|
|
- `$(LIBOPT) $(LIBLIBS)` -lc
|
2000-07-15 17:04:36 +00:00
|
|
|
+$(SONAME): $(SHLIBOBJECTS) $(LIBOBJECTS_X) $(LIBLIBS) $(LIBOPT) lib$(LIBROOT).a
|
|
|
|
+ $(LD) $(LDSHLIB) -o $@ $(SHLIBOBJECTS) $(LIBOBJECTS_X) \
|
2000-05-21 08:41:19 +00:00
|
|
|
+ `$(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)
|
2000-07-15 17:04:36 +00:00
|
|
|
@@ -148,7 +144,7 @@
|
2000-05-21 08:41:19 +00:00
|
|
|
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-07-01 19:26:13 +00:00
|
|
|
- $(INSTALL) -c -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-06-04 22:36:27 +00:00
|
|
|
do ln -s $(MERGENAME)$(EXE) $$i ; \
|
2000-07-15 17:04:36 +00:00
|
|
|
@@ -157,7 +153,7 @@
|
2000-07-01 19:26:13 +00:00
|
|
|
ifneq ($(NOMERGEBINARIES)x,x)
|
2000-06-04 22:36:27 +00:00
|
|
|
for x in $(NOMERGEBINARIES); \
|
|
|
|
do \
|
|
|
|
- $(INSTALL) -c -s -m $(INSTALL_PERM_BIN) $$x $(INSTALLBINARIES); \
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} $$x $(INSTALLBINARIES); \
|
|
|
|
done
|
2000-07-01 19:26:13 +00:00
|
|
|
endif
|
2000-04-01 23:57:38 +00:00
|
|
|
|
2000-07-15 17:04:36 +00:00
|
|
|
@@ -169,7 +165,7 @@
|
2000-05-19 08:34:13 +00:00
|
|
|
# Make and Install know that pbmmake.exe counts as pbmmake.
|
2000-06-04 22:36:27 +00:00
|
|
|
for x in $(BINARIES); \
|
|
|
|
do \
|
|
|
|
- $(INSTALL) -c -s -m $(INSTALL_PERM_BIN) $$x $(INSTALLBINARIES); \
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} $$x $(INSTALLBINARIES); \
|
|
|
|
done
|
2000-04-01 23:57:38 +00:00
|
|
|
|
|
|
|
.PHONY: install.script
|
2000-07-15 17:04:36 +00:00
|
|
|
@@ -177,7 +173,7 @@
|
2000-04-01 23:57:38 +00:00
|
|
|
ifneq ($(SCRIPTS)x,x)
|
2000-06-04 22:36:27 +00:00
|
|
|
for x in $(SCRIPTS); \
|
|
|
|
do \
|
|
|
|
- $(INSTALL) -c -m $(INSTALL_PERM_BIN) $$x $(INSTALLSCRIPTS); \
|
|
|
|
+ ${BSD_INSTALL_SCRIPT} $$x $(INSTALLSCRIPTS); \
|
|
|
|
done
|
2000-04-01 23:57:38 +00:00
|
|
|
endif
|
|
|
|
|
2000-07-15 17:04:36 +00:00
|
|
|
@@ -210,7 +206,7 @@
|
2000-04-01 23:57:38 +00:00
|
|
|
# directory when you compile your programs.
|
2000-06-04 22:36:27 +00:00
|
|
|
for x in $(INTERFACE_HEADERS); \
|
|
|
|
do \
|
|
|
|
- $(INSTALL) -c -m $(INSTALL_PERM_HDR) $$x $(INSTALLHDRS); \
|
|
|
|
+ ${BSD_INSTALL_DATA} $$x $(INSTALLHDRS); \
|
|
|
|
done
|
2000-04-01 23:57:38 +00:00
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
# Install a static library
|
2000-07-15 17:04:36 +00:00
|
|
|
@@ -221,16 +217,15 @@
|
2000-05-21 08:41:19 +00:00
|
|
|
# library, the dependency here will do that.
|
|
|
|
.PHONY: install.staticlib
|
|
|
|
install.staticlib: lib$(LIBROOT).a
|
2000-06-04 22:36:27 +00:00
|
|
|
- $(INSTALL) -c -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-06-04 22:36:27 +00:00
|
|
|
- $(INSTALL) -c -m $(INSTALL_PERM_LIBD) $< $(INSTALLLIBS)
|
2000-05-21 08:41:19 +00:00
|
|
|
+install.lib.common: $(SONAME)
|
|
|
|
+ cd $(INSTALLLIBS) ; rm -f lib$(LIBROOT).so.*
|
|
|
|
+ ${BSD_INSTALL_DATA} $< $(INSTALLLIBS)
|
2000-06-04 22:36:27 +00:00
|
|
|
cd $(INSTALLLIBS) ; rm -f lib$(LIBROOT).so; ln -s $< lib$(LIBROOT).so
|
|
|
|
- cd $(INSTALLLIBS) ; rm -f $(SONAME); ln -s $< $(SONAME)
|
2000-05-21 08:41:19 +00:00
|
|
|
endif
|
2000-04-01 23:57:38 +00:00
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
.PHONY: clean.common
|