1###
2# This program is copyright Alec Muffett 1993. The author disclaims all
3# responsibility or liability with respect to it's usage or its effect
4# upon hardware or computer systems, and maintains copyright as set out
5# in the "LICENCE" document which accompanies distributions of Crack v4.0
6# and upwards.
7###
8
9###
10# You MIGHT want to remove "-Bstatic" if you're not on SunOS machines.
11# If you ARE, then leave it and suffer a few extra Kb for security's sake
12###
13
14#SunOS users (and others?) should consider static linking of their passwd binary
15#CFLAGS= -O -I../cracklib '-DCRACKLIB_DICTPATH="$(DICTPATH)"' -Bstatic
16
17CFLAGS= -O -I../cracklib '-DCRACKLIB_DICTPATH="$(DICTPATH)"'
18LIBS=	../cracklib/libcrack.a
19
20all:	packer unpacker testnum teststr testlib
21	touch all
22
23packer: packer.o $(LIBS)
24	cc $(CFLAGS) -o $@ $@.o $(LIBS)
25
26unpacker: unpacker.o $(LIBS)
27	cc $(CFLAGS) -o $@ $@.o $(LIBS)
28
29testnum: testnum.o $(LIBS)
30	cc $(CFLAGS) -o $@ $@.o $(LIBS)
31
32teststr: teststr.o $(LIBS)
33	cc $(CFLAGS) -o $@ $@.o $(LIBS)
34
35testlib: testlib.o $(LIBS)
36	cc $(CFLAGS) -o $@ $@.o $(LIBS)
37
38clean:
39	-rm *.o *~ all
40	-rm teststr testnum testlib packer unpacker
41