crack (5.0a-9.3) src/util/Makefile

Summary

 src/util/Makefile |   17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

    
download this patch

Patch contents

--- crack-5.0a.orig/src/util/Makefile
+++ crack-5.0a/src/util/Makefile
@@ -1,6 +1,6 @@
 ###
 # This program was written by and is copyright Alec Muffett 1991,
-# 1992, 1993, 1994, 1995, and 1996, and is provided as part of the
+# 1992, 1993, 1994, 1995, 1996 & 1997, and is provided as part of the
 # Crack v5.0 Password Cracking package.
 #
 # The copyright holder disclaims all responsibility or liability with
@@ -9,13 +9,12 @@
 # document which accompanies distributions of Crack v5.0 and upwards.
 ###
 
-CFLAGS= $(XCFLAGS) -I../lib
+CFLAGS= $(XCFLAGS) -I../lib -D_XOPEN_SOURCE
 CC=     $(XCC)
 
 XLIB=$(XDIR)/libc5.a $(XLIBS)
 
 EXE=    $(XDIR)/dawg \
-	$(XDIR)/dictfilt \
 	$(XDIR)/kickdict \
 	$(XDIR)/cracker
 
@@ -42,21 +41,25 @@
 $(XDIR)/stdlib-cracker: cracker.c $(XLIB)
 	$(CC) $(CFLAGS) -c elcid.c
 	$(CC) $(CFLAGS) -o $(XDIR)/cracker cracker.c elcid.o $(XLIB)
+	$(CC) $(CFLAGS) -o $(XDIR)/dictfilt dictfilt.c elcid.o $(XLIB)
 	date > $@
 
 $(XDIR)/libdes-cracker: cracker.c $(XLIB)
 	$(CC) $(CFLAGS) -c elcid.c
 	$(CC) $(CFLAGS) -o $(XDIR)/cracker cracker.c elcid.o $(XLIB) ../libdes/libdes.a
+	$(CC) $(CFLAGS) -o $(XDIR)/dictfilt dictfilt.c elcid.o $(XLIB) ../libdes/libdes.a
 	date > $@
 
 $(XDIR)/ufc-cracker: cracker.c $(XLIB)
 	$(CC) $(CFLAGS) -DINITDES -DFCRYPT -c elcid.c
 	$(CC) $(CFLAGS) -o $(XDIR)/cracker cracker.c elcid.o $(XLIB) ../ufc-crypt/libufc.a
+	$(CC) $(CFLAGS) -o $(XDIR)/dictfilt dictfilt.c elcid.o $(XLIB) ../ufc-crypt/libufc.a
 	date > $@
 
 $(XDIR)/gnu-cracker: cracker.c $(XLIB)
 	$(CC) $(CFLAGS) -c elcid.c
 	$(CC) $(CFLAGS) -o $(XDIR)/cracker cracker.c elcid.o $(XLIB) ../crypt/libufc.a
+	$(CC) $(CFLAGS) -o $(XDIR)/dictfilt dictfilt.c elcid.o $(XLIB) ../crypt/libufc.a
 	date > $@
 
 #------------------------------------------------------------------
@@ -64,13 +67,7 @@
 $(XDIR)/dawg: dawg.c $(XLIB)
 	$(CC) $(CFLAGS) -o $(XDIR)/dawg dawg.c $(XLIB)
 	rm -f $(XDIR)/xdawg
-	ln $(XDIR)/dawg $(XDIR)/xdawg
-
-#------------------------------------------------------------------
-
-# don't you just love dependency graphs?
-$(XDIR)/dictfilt: dictfilt.c $(XLIB) $(XDIR)/cracker
-	$(CC) $(CFLAGS) -o $(XDIR)/dictfilt dictfilt.c elcid.o $(XLIB)
+	ln -s dawg $(XDIR)/xdawg
 
 #------------------------------------------------------------------