-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
43 lines (35 loc) · 1.18 KB
/
Makefile
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
##################################
# <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
##################################
LDLIBS = -lpcap -lxcrypt
CFLAGS = -pipe -Wall -D_LINUX -D_OPENSSL_MD4
LDLIBS += -lcrypto
CFLAGS += -g3 #-ggdb -g
PROGOBJ = asleap.o genkeys.o utils.o common.o sha1.o
PROG = asleap genkeys
#CC = clang-10
CC = gcc
all: $(PROG) $(PROGOBJ)
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 version.h sha1.c \
sha1.h
$(CC) $(CFLAGS) asleap.c -o asleap common.o utils.o sha1.o $(LDLIBS)
genkeys: genkeys.c md4.c md4.h common.o utils.o version.h common.h
$(CC) $(CFLAGS) md4.c genkeys.c -o genkeys common.o utils.o $(LDLIBS)
clean:
$(RM) $(PROGOBJ) $(PROG) *~
strip:
@ls -l $(PROG)
@strip $(PROG)
@ls -l $(PROG)