File: Makefile

package info (click to toggle)
crack 5.0a-9.3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 8,460 kB
  • ctags: 574
  • sloc: ansic: 7,444; perl: 1,316; sh: 1,062; makefile: 296
file content (76 lines) | stat: -rw-r--r-- 2,337 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
###
# This program was written by and is copyright Alec Muffett 1991,
# 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
# respect to its usage or its effect upon hardware or computer
# systems, and maintains copyright as set out in the "LICENCE"
# document which accompanies distributions of Crack v5.0 and upwards.
###

CFLAGS= $(XCFLAGS) -I../lib -D_XOPEN_SOURCE
CC=     $(XCC)

XLIB=$(XDIR)/libc5.a $(XLIBS)

EXE=    $(XDIR)/dawg \
	$(XDIR)/kickdict \
	$(XDIR)/cracker

#------------------------------------------------------------------

all:    $(EXE)
	@echo all made in util

clean:
	rm -f *.o *~

clobber: clean
	rm -f $(EXE)

$(XLIB):

#------------------------------------------------------------------

$(XDIR)/cracker:        cracker.c $(XLIB)
	mkcracker $(XDIR) "XDIR=$(XDIR)" "XCFLAGS=$(XCFLAGS)" "XCC=$(XCC)" "XLIB=$(XLIB)"

# ...targets which are known to mkcracker...

$(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 > $@

#------------------------------------------------------------------

$(XDIR)/dawg: dawg.c $(XLIB)
	$(CC) $(CFLAGS) -o $(XDIR)/dawg dawg.c $(XLIB)
	rm -f $(XDIR)/xdawg
	ln -s dawg $(XDIR)/xdawg

#------------------------------------------------------------------

$(XDIR)/kickdict: kickdict.c $(XLIB)
	$(CC) $(CFLAGS) -o $(XDIR)/kickdict kickdict.c $(XLIB)