26 lines
647 B
Text
26 lines
647 B
Text
$NetBSD: patch-ab,v 1.3 2009/12/10 23:30:53 abs Exp $
|
|
|
|
--- cracklib/Makefile.orig 1997-12-14 22:49:21.000000000 +0000
|
|
+++ cracklib/Makefile
|
|
@@ -7,12 +7,16 @@
|
|
###
|
|
|
|
LIB= libcrack.a
|
|
-OBJ= fascist.o packlib.o rules.o stringlib.o
|
|
-CFLAGS= -O -I../cracklib -DIN_CRACKLIB
|
|
+OBJS= fascist.o packlib.o rules.o stringlib.o
|
|
+CFLAGS+= -I../cracklib -DIN_CRACKLIB
|
|
|
|
-$(LIB): $(OBJ)
|
|
- ar rv $(LIB) $?
|
|
- -ranlib $(LIB)
|
|
+all: ${LIB}
|
|
+
|
|
+.c.o:
|
|
+ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} $< -c -o ${.TARGET}
|
|
+
|
|
+${LIB}: ${OBJS}
|
|
+ ${LIBTOOL} --mode=link ${CC} -o ${@:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 2:7
|
|
|
|
clean:
|
|
-rm -f $(OBJ) $(LIB) *~
|