-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·96 lines (81 loc) · 2.42 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
ATPRO = atpro
MEMAB = memab
PSPNET_ADHOC_AUTH = pspnet_adhoc_auth
PSPNET_ADHOC = pspnet_adhoc
PSPNET_ADHOCCTL = pspnet_adhocctl
PSPNET_ADHOC_MATCHING = pspnet_adhoc_matching
PSPNET_ADHOC_DOWNLOAD = pspnet_adhoc_download
PSPNET_ADHOC_DISCOVER = pspnet_adhoc_discover
PSPNET_ADHOCCTL_SERVER = pspnet_adhocctl_server
PSPNET_MINIUPNC = pspnet_miniupnc
CONTRIBUTIONS = contributions
PROCFW = ../procfw
DISTRIBUTE = dist
FLAGS = CONFIG_620=1
ifeq ($(CONFIG_63X), 1)
FLAGS = CONFIG_63X=1
endif
ifeq ($(CONFIG_660), 1)
FLAGS = CONFIG_660=1
endif
ifeq ($(RELEASE), 1)
FLAGS += RELEASE=1
else
FLAGS += DEBUG=1
ifeq ($(ENABLE_LOGGER), 1)
FLAGS += ENABLE_LOGGER=1
endif
ifeq ($(TRACE), 1)
FLAGS += TRACE=1
endif
endif
ifeq ($(ENABLE_PEERLOCK), 1)
FLAGS += ENABLE_PEERLOCK=1
endif
ifeq ($(ENABLE_NETLOCK), 1)
FLAGS += ENABLE_NETLOCK=1
endif
ifeq ($(PDP_DIRTY_MAGIC), 1)
FLAGS += PDP_DIRTY_MAGIC=1
endif
ifeq ($(BROADCAST_TO_LOCALHOST), 1)
FLAGS += BROADCAST_TO_LOCALHOST=1
endif
ifeq ($(LOCALHOST_AS_PEER), 1)
FLAGS += LOCALHOST_AS_PEER=1
endif
all:
@mkdir $(DISTRIBUTE) || true
@mkdir $(DISTRIBUTE)/docs || true
@mkdir $(DISTRIBUTE)/seplugins || true
@mkdir $(DISTRIBUTE)/kd || true
@mkdir $(DISTRIBUTE)/server || true
@touch $(DISTRIBUTE)/seplugins/hotspot.txt || true
# @cp -r $(CONTRIBUTIONS)/PSP $(DISTRIBUTE)
@echo coldbird.uk.to > $(DISTRIBUTE)/seplugins/server.txt
# @echo home.coldbird.uk.to > $(DISTRIBUTE)/seplugins/server.txt
# @echo 192.168.1.103 > $(DISTRIBUTE)/seplugins/server.txt
# @touch $(DISTRIBUTE)/seplugins/server.txt || true
@cd $(PROCFW); make deps
@cd $(ATPRO); make $(FLAGS)
@cd $(MEMAB); make $(FLAGS)
@cd $(PSPNET_ADHOC_AUTH); make $(FLAGS)
@cd $(PSPNET_ADHOC); make $(FLAGS)
@cd $(PSPNET_ADHOCCTL); make $(FLAGS)
@cd $(PSPNET_ADHOC_MATCHING); make $(FLAGS)
# @cd $(PSPNET_ADHOC_DOWNLOAD); make $(FLAGS)
# @cd $(PSPNET_ADHOC_DISCOVER); make $(FLAGS)
@cd $(PSPNET_ADHOCCTL_SERVER); make $(FLAGS)
@cd $(PSPNET_MINIUPNC); make $(FLAGS)
clean:
@cd $(ATPRO); make clean $(FLAGS)
@cd $(MEMAB); make clean $(FLAGS)
@cd $(PSPNET_ADHOC_AUTH); make clean $(FLAGS)
@cd $(PSPNET_ADHOC); make clean $(FLAGS)
@cd $(PSPNET_ADHOCCTL); make clean $(FLAGS)
@cd $(PSPNET_ADHOC_MATCHING); make clean $(FLAGS)
# @cd $(PSPNET_ADHOC_DOWNLOAD); make clean $(FLAGS)
# @cd $(PSPNET_ADHOC_DISCOVER); make clean $(FLAGS)
@cd $(PSPNET_ADHOCCTL_SERVER); make clean $(FLAGS)
@cd $(PSPNET_MINIUPNC); make clean $(FLAGS)
@rm -rf $(DISTRIBUTE) || true