mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
--- Makefile.lib.orig Sun Dec 21 05:07:22 1997
|
|
+++ Makefile.lib Wed Jun 2 16:00:57 1999
|
|
@@ -1,16 +1,30 @@
|
|
-CLEANFILES=lib$(LIB).a $(OBJS) $(COBJS) core
|
|
+prefix=/usr/local
|
|
+exec_prefix=$(prefix)
|
|
+# Where to install the binaries
|
|
+bindir=$(exec_prefix)/bin
|
|
+libdir=$(exec_prefix)/lib
|
|
+#INSTALL=cp
|
|
+# You might want to change this to uncomment this on BSD systems
|
|
+INSTALL=install -c
|
|
+VERSION=1
|
|
+CLEANFILES=lib$(LIB).a lib$(LIB).so.$(VERSION) $(OBJS) $(COBJS) core
|
|
ALL_CXXFLAGS=$(CXXFLAGS) -I$(srcdir) -I$(srcdir)/../include $(INCLUDE) \
|
|
$(DEFINES) $(PIC_FLAG)
|
|
ALL_CFLAGS=$(CFLAGS) $(DEBUG) $(OPTIMIZE) $(INCLUDE) $(DEFINES) $(PIC_FLAG)
|
|
|
|
-all: lib$(LIB).a
|
|
+all: lib$(LIB).a lib$(LIB).so.$(VERSION)
|
|
pure: all
|
|
|
|
lib$(LIB).a: $(OBJS) $(COBJS)
|
|
$(AR) r $@ $?
|
|
$(RANLIB) $@
|
|
|
|
+lib$(LIB).so.$(VERSION): $(SOBJS) $(SCOBJS)
|
|
+ $(CC) -shared -soname lib$(LIB).so.$(VERSION) -o lib$(LIB).so.$(VERSION) $(SOBJS) $(SCOBJS)
|
|
+
|
|
install:
|
|
+ $(INSTALL) lib$(LIB).a $(libdir)
|
|
+ $(INSTALL) lib$(LIB).so.$(VERSION) $(libdir)
|
|
install-man:
|
|
depend: depend_src
|
|
depend.temp: $(GENSRCS)
|