-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 804 Bytes
/
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
## Makefile
binary = smtp_probe
compiler = cc
flags = -g3 -Wall
includes = -I.
libraries =
cflags = $(flags) $(includes) $(libraries)
label = -- $(binary) BETA version --
sources = smtp_probe.c finger.c misc.c network.c probe.c
objects = $(sources:.c=.o)
default : readme objects binary
readme :
@cat WutCodeDo
objects :
@for f in $(sources); do echo compiling $$f; \
$(compiler) -c $$f $(cflags); done
binary :
@echo compiling $(binary)
@$(compiler) -o $(binary) $(objects) $(cflags)
@strip $(binary)
debug : objects
@echo compiling $(binary) in debug mode
@$(compiler) -o $(binary) $(objects) $(cflags) -lefence -L.
release :
@echo creating release
rm -f *.o *~ .*~ a.out core $(binary)
cd .. && tar czf $(binary).tgz $(binary)/
clean :
rm -f *.o *~ .*~