nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | ################################## |
2 | # <jwright> Well, I may be doing stupid things with make |
||
3 | # <jwright> OK, it was Makefile stupid'ness |
||
4 | # <jwright> I don't really understand what the hell I am doing with Make, I'm |
||
5 | # just copying other files and seeing what works. |
||
6 | # <dragorn> heh |
||
7 | # <dragorn> i think thats all anyone does |
||
8 | # <dragorn> make is a twisted beast |
||
9 | ################################## |
||
10 | LDLIBS = -lpcap |
||
11 | CFLAGS = -pipe -Wall -DOPENSSL |
||
12 | CFLAGS += -O2 |
||
13 | LDLIBS += -lcrypto |
||
14 | CFLAGS += -g3 -ggdb |
||
15 | #CFLAGS += -static |
||
16 | PROGOBJ = md5.o sha1.o utils.o cowpatty.o genpmk.o |
||
17 | PROG = cowpatty genpmk |
||
18 | BINDIR = /usr/local/bin |
||
19 | |||
20 | all: $(PROGOBJ) $(PROG) |
||
21 | |||
22 | cowpatty: common.h md5.c md5.h sha1.h cowpatty.c cowpatty.h sha1.c \ |
||
23 | sha1.h utils.c utils.h |
||
24 | $(CC) $(CFLAGS) cowpatty.c -o cowpatty utils.o md5.o sha1.o $(LDLIBS) |
||
25 | |||
26 | genpmk: genpmk.c cowpatty.h utils.h sha1.h common.h |
||
27 | $(CC) $(CFLAGS) genpmk.c -o genpmk utils.o sha1.o $(LDLIBS) |
||
28 | |||
29 | utils: utils.c utils.h |
||
30 | $(CC) $(CFLAGS) utils.c -c |
||
31 | |||
32 | md5: md5.c md5.h |
||
33 | $(CC) $(CFLAGS) md5.c -c |
||
34 | |||
35 | sha1: sha1.c sha1.h |
||
36 | $(CC) $(CFLAGS) sha1.c -c |
||
37 | |||
38 | clean: |
||
39 | @rm $(PROGOBJ) $(PROG) |
||
40 | |||
41 | strip: |
||
42 | @ls -l $(PROG) |
||
43 | @strip $(PROG) |
||
44 | @ls -l $(PROG) |
||
45 | |||
46 | install: all |
||
47 | install -d $(DESTDIR)$(BINDIR) |
||
48 | install -m 755 $(PROG) $(DESTDIR)$(BINDIR) |