38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
$NetBSD: patch-aa,v 1.3 2014/01/20 19:20:08 joerg Exp $
|
|
|
|
--- Makefile 2003/07/24 07:02:17 1.1
|
|
+++ Makefile 2003/07/24 07:03:14
|
|
@@ -2,21 +2,25 @@
|
|
#
|
|
# In fact all we have to make is the libfilecmp.so.0.0 library.
|
|
|
|
-BINDIR=$(DESTDIR)/usr/bin
|
|
-LIBDIR=$(DESTDIR)/usr/lib
|
|
+BINDIR=$(DESTDIR)${PREFIX}/bin
|
|
+LIBDIR=$(DESTDIR)${PREFIX}/lib
|
|
INSTALL=install
|
|
|
|
# You may need to change the -I arguments depending on your system
|
|
-CFLAGS=-O3 -I/usr/include/tcl8.3/ -I/usr/include/tcl
|
|
+CFLAGS+=-I${PREFIX}/include
|
|
|
|
-all: libfilecmp.so.0.0
|
|
+LIBS= libfilecmp.a
|
|
+OBJS= filecmp.o
|
|
|
|
-libfilecmp.so.0.0: filecmp.c
|
|
- $(CC) $(CFLAGS) -shared -o $@ filecmp.c
|
|
+all: ${LIBS}
|
|
|
|
-install: dirdiff libfilecmp.so.0.0
|
|
+${LIBS}: filecmp.c
|
|
+ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c filecmp.c
|
|
+ ${LIBTOOL} --mode=link ${CC} -o ${.TARGET:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 0:0
|
|
+
|
|
+install: dirdiff ${LIBS}
|
|
$(INSTALL) -c dirdiff $(BINDIR)
|
|
- $(INSTALL) -c libfilecmp.so.0.0 $(LIBDIR)
|
|
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ${LIBS:.a=.la} ${LIBDIR}
|
|
|
|
clean:
|
|
rm -f libfilecmp.so.0.0
|