mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
26bb1d1729
A library for parsing command line options. PR: 6331 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
--- Makefile.orig Sun Jul 5 12:08:59 1998
|
|
+++ Makefile Fri Apr 2 15:15:59 1999
|
|
@@ -6,10 +6,10 @@
|
|
VERSION = $(VERMAJ).$(VERMIN).$(VERPAT)
|
|
|
|
# Define SHARED as 1 for Linux shared ELF library
|
|
-#SHARED = 1
|
|
+SHARED = 1
|
|
|
|
ifeq ($(SHARED),1)
|
|
-LIBTARGET = lib$(DIST).so.$(VERSION)
|
|
+LIBTARGET = lib$(DIST).so.$(VERMAJ)
|
|
LIBTARGETSO = lib$(DIST).so
|
|
LIBTARGETSOMAJ = $(LIBTARGETSO).$(VERMAJ)
|
|
CCSHRD = -fPIC
|
|
@@ -23,8 +23,8 @@
|
|
INSTBASEDIR = /usr/local
|
|
INSTLIBDIR = $(INSTBASEDIR)/lib
|
|
INSTINCDIR = $(INSTBASEDIR)/include
|
|
-INSTALL = install -m 644
|
|
-INSTALLPROG = install -m 755
|
|
+INSTALL = install -c -m 644
|
|
+INSTALLPROG = install -c -m 755
|
|
MKDIRP = install -d -m 755
|
|
|
|
CC = gcc
|
|
@@ -67,9 +67,7 @@
|
|
$(INSTALL) $(LIBTARGET) $(INSTLIBDIR)
|
|
$(INSTALL) $(LIBHEAD) $(INSTINCDIR)
|
|
ifeq ($(SHARED),1)
|
|
- ln -sf $(LIBTARGET) $(INSTLIBDIR)/$(LIBTARGETSOMAJ)
|
|
- ln -sf $(LIBTARGETSOMAJ) $(INSTLIBDIR)/$(LIBTARGETSO)
|
|
- echo "If you use GNU/Linux, remember to run ldconfig"
|
|
+ ln -sf $(LIBTARGET) $(INSTLIBDIR)/$(LIBTARGETSO)
|
|
endif
|
|
|
|
clean:
|