-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
executable file
·62 lines (55 loc) · 1.56 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
CC=g++
CFLAGS= -g -c -Wall -Wextra -ansi -std=c++11 -Wno-unused-parameter -Wno-unused-function
LDFLAGS= -g
SOURCES=src/main.cpp src/tools.cpp src/crypt.cpp
OBJECTS=$(SOURCES:.cpp=.o)
#Crée les dépendances avec les .h si un .h modifié on refait le make
DEPS=$(SOURCES:.cpp=.d)
EXECUTABLE=bramble
# if you add your own script add DIR.. and add it to $(EXEc) and clean instruction
DIR=steganography
DIR2=vacuum
DIR3=tools
DIR4=cryptography
DIR5=option
DIR6=wifiJammer
DIR7=forensic
DIR8=gainAccess
DIR9=sniffer
DIR10=evilTwin
EXEC=($DIR)/steganography
all: $(SOURCES) $(EXECUTABLE) $(EXEC)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
$(EXEC) :
@(cd $(DIR) && $(MAKE))
@(cd $(DIR2) && $(MAKE))
@(cd $(DIR3) && $(MAKE))
@(cd $(DIR4) && $(MAKE))
@(cd $(DIR5) && $(MAKE))
@(cd $(DIR6) && $(MAKE))
@(cd $(DIR7) && $(MAKE))
@(cd $(DIR8) && $(MAKE))
@(cd $(DIR9) && $(MAKE))
@(cd $(DIR10) && $(MAKE))
mkdir -p result/scanNetwork
mkdir -p result/clone
%.o: %.cpp
$(CC) $(CFLAGS) $< -o $@
#Crée les dépendances avec les .h si un .h modifié on refait le make
%.d: %.cpp
$(CC) -MM -MD $(CFLAGS) $< -o $@
clean:
rm -f bramble src/*.o src/*.d src/*~ *~ python/*.pyc python/utils/*.pyc
@(cd $(DIR) && $(MAKE) $@)
@(cd $(DIR2) && $(MAKE) $@)
@(cd $(DIR3) && $(MAKE) $@)
@(cd $(DIR4) && $(MAKE) $@)
@(cd $(DIR5) && $(MAKE) $@)
@(cd $(DIR6) && $(MAKE) $@)
@(cd $(DIR7) && $(MAKE) $@)
@(cd $(DIR8) && $(MAKE) $@)
@(cd $(DIR9) && $(MAKE) $@)
@(cd $(DIR10) && $(MAKE) $@)
#Crée les dépendances avec les .h si un .h modifié on refait le make
-include $(DEPS)