1# Makefile for l0phtcrack - mudge@l0pht.com 11/1/96
2
3# C compiler
4#CC=cc
5CC=gcc
6
7# Uncomment the following to add symbols to the code for debugging
8#DEBUG=-g -Wall -D_DEBUG
9#DEBUG=-D_DEBUG
10
11# Optimization for the compiler
12#OPTIMIZE=
13OPTIMIZE=-O2
14
15# Choose your architecture
16#  note that if you are on a big-endian machine like SUN's
17#  I haven't tweaked the mem-cmp's and md4 stuff to be in
18#  the correct order yet. You're on your own right now.
19#
20# FreeBSD
21ARCH=-DMPU8086
22STATIC=
23XLIBS=
24#
25# SUNOS
26#ARCH=-DBIGENDIAN
27#STATIC=
28#OPTIMIZE=-O2
29#XLIBS=
30#
31# ULTRA_SPARC w/ native compiler
32#ARCH=-DBIGENDIAN
33#STATIC=
34#OPTIMIZE=-fast -xO4 -xdepend -xchip=ultra -xarch=v8plus
35#XLIBS=
36#
37# SunOS/Solaris w/gcc
38#ARCH=-DBIGENDIAN -DTEST
39#STATIC=
40#OPTIMIZE=-O2
41#XLIBS=
42#
43# NeXTStep 3.2
44#CC=cc
45#ARCH=-DBIGENDIAN
46#STATIC=-Bstatic
47#OPTIMIZE=
48#XLIBS=
49
50CFLAGS= $(DEBUG) $(OPTIMIZE) $(ARCH) $(VISUAL) $(PERMUTE) $(STATIC)
51
52OBJS = getopt.o        md4.o           mkntpwd.o       smbdes.o
53
54mkntpwd: $(OBJS)
55	$(CC) $(CFLAGS) $(XLIBS) -o mkntpwd $(OBJS)
56
57clean:
58	rm -f core *.o mkntpwd
59
60install: mkntpwd
61	install -m 555 mkntpwd $(PREFIX)/sbin/mkntpwd
62
63