-
Notifications
You must be signed in to change notification settings - Fork 21
/
makefile.cygwin
41 lines (33 loc) · 1.24 KB
/
makefile.cygwin
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
##################################
# <jwright> Well, I may be doing stupid things with make
# <jwright> OK, it was Makefile stupid'ness
# <jwright> I don't really understand what the hell I am doing with Make, I'm
# just copying other files and seeing what works.
# <dragorn> heh
# <dragorn> i think thats all anyone does
# <dragorn> make is a twisted beast
##################################
WPDPACK = ../WPdpack
LDLIBS = -L$(WPDPACK)/Lib -lwpcap -lcrypt -static
CFLAGS = -g3 -ggdb -pipe -Wall -I./cygwin -D_FILE_OFFSET_BITS=64
CFLGAS += -D_LARGEFILE_SOURCE
PROGOBJ = asleap.o genkeys.o utils.o common.o apeek.o sha1.o
PROG = asleap genkeys
all: $(PROG) $(PROGOBJ)
apeek: apeek.c
$(CC) $(CFLAGS) apeek.c -c
utils: utils.c utils.h
$(CC) $(CFLAGS) utils.c -c
common: common.c common.h
$(CC) $(CFLAGS) common.c -c
sha1: sha1.c sha1.h
$(CC) $(CFLAGS) sha1.c -c
asleap: asleap.c asleap.h sha1.o common.o common.h utils.o apeek.o \
version.h sha1.c sha1.h apeek.h
$(CC) $(CFLAGS) asleap.c -o asleap \
common.o utils.o apeek.o sha1.o $(LDLIBS)
genkeys: genkeys.c md4.c md4.h common.o utils.o
$(CC) $(CFLAGS) md4.c genkeys.c -o genkeys \
common.o utils.o -lcrypt
clean:
$(RM) $(PROGOBJ) $(PROG) asleap.exe genkeys.exe *~