-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
44 lines (36 loc) · 1.12 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
44
##################################
# <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
CFLAGS = -pipe -Wall -DOPENSSL -O3
LDLIBS += -lcrypto
#CFLAGS = -g3 -ggdb -pipe -Wall -Di386_ASM
#CFLAGS = -g3 -ggdb -pipe -Wall
#CFLAGS += -g3 -ggdb
#CFLAGS += -static
PROGOBJ = md5.o sha1.o utils.o cowpatty.o
PROG = cowpatty
all: $(PROGOBJ) $(PROG)
cowpatty: common.h md5.c md5.h sha1.h cowpatty.c cowpatty.h sha1.c \
sha1.h utils.c utils.h
$(CC) $(CFLAGS) cowpatty.c -o cowpatty utils.o md5.o sha1.o $(LDLIBS)
utils: utils.c utils.h
$(CC) $(CFLAGS) utils.c -c
md5: md5.c md5.h
$(CC) $(CFLAGS) md5.c -c
sha1: sha1.c sha1.h
$(CC) $(CFLAGS) sha1.c -c
clean:
$(RM) $(PROGOBJ) $(PROG) *~
strip:
@ls -l $(PROG)
@strip $(PROG)
@ls -l $(PROG)
love:
@echo "Not right now, I have a headache."