forked from conorpp/MiTM-HTTP-Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
51 lines (32 loc) · 738 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
39
40
41
42
43
44
45
46
47
CC=clang
CFLAGS=-c -Wall -fPIC
BuildDir=build
SrcDir=src
EXE=Prox
#utils
# Proxy
ProxyName=proxy
ProxyDir=$(SrcDir)/$(ProxyName)
ProxyBuildDir=$(ProxyDir)/$(BuildDir)
ProxySO=$(ProxyBuildDir)/proxy.so
# Utils
UtilsName=utils
UtilsDir=$(SrcDir)/$(UtilsName)
UtilsBuildDir=$(UtilsDir)/$(BuildDir)
UtilsSO=$(UtilsBuildDir)/utils.so
export
all: $(EXE)
$(EXE): $(ProxySO) $(UtilsSO)
$(CC) $^ -o $(EXE)
$(ProxySO): $(ProxyBuildDir)
@make -f $(ProxyDir)/makefile
$(UtilsSO): $(UtilsBuildDir)
@make -f $(UtilsDir)/makefile
clean: clean$(ProxyName) clean$(UtilsName)
rm $(EXE)
clean$(ProxyName):
@make -f $(ProxyDir)/makefile clean
clean$(UtilsName):
@make -f $(UtilsDir)/makefile clean
$(SrcDir)/%/$(BuildDir):
mkdir $@