-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathMakefile.am
187 lines (153 loc) · 8.06 KB
/
Makefile.am
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
AUTOMAKE_OPTIONS = foreign serial-tests subdir-objects
ACLOCAL_AMFLAGS = -I m4
COMMON_SUBDIRS = @PORT_SUBDIR@ nettle
if HAVE_GTEST
COMMON_SUBDIRS += tests/utils
endif
COMMON_SUBDIRS += Misc poslib Messages Options AddrMgr CfgMgr IfaceMgr
COMMON_SUBDIRS += doc
SRV_SUBDIRS = SrvOptions SrvIfaceMgr SrvAddrMgr SrvMessages SrvTransMgr SrvCfgMgr
REL_SUBDIRS = RelCfgMgr RelIfaceMgr RelMessages RelOptions RelTransMgr
CLNT_SUBDIRS = ClntOptions ClntTransMgr ClntAddrMgr ClntCfgMgr ClntIfaceMgr ClntMessages
REQ_SUBDIRS = Requestor
SUBDIRS = $(COMMON_SUBDIRS) $(SRV_SUBDIRS) $(CLNT_SUBDIRS) $(REL_SUBDIRS) $(REQ_SUBDIRS)
if HAVE_GTEST
SUBDIRS += tests
endif
DIST_SUBDIRS = $(COMMON_SUBDIRS) $(SRV_SUBDIRS) $(CLNT_SUBDIRS) $(REL_SUBDIRS) $(REQ_SUBDIRS)
DIST_SUBDIRS += Port-win32 bison++ @EXTRA_DIST_SUBDIRS@ tests
sbin_PROGRAMS = dibbler-client dibbler-server dibbler-relay dibbler-requestor
common-libs:
for dir in $(COMMON_SUBDIRS) ; do \
$(MAKE) -C $$dir ; \
done
client-libs:
for dir in $(CLNT_SUBDIRS) ; do \
$(MAKE) -C $$dir ; \
done
server-libs:
for dir in $(SRV_SUBDIRS) ; do \
$(MAKE) -C $$dir ; \
done
relay-libs:
for dir in $(REL_SUBDIRS) ; do \
$(MAKE) -C $$dir ; \
done
requestor-libs:
for dir in $(REQ_SUBDIRS) ; do \
$(MAKE) -C $$dir ; \
done
client: common-libs client-libs
$(MAKE) dibbler-client
dibbler_client_SOURCES = $(top_srcdir)/@PORT_SUBDIR@/dibbler-client.cpp
dibbler_client_SOURCES += $(top_srcdir)/Misc/DHCPClient.cpp $(top_srcdir)/Misc/DHCPClient.h
dibbler_client_CPPFLAGS = -I$(top_srcdir)/Misc -I$(top_srcdir)/ClntTransMgr
dibbler_client_CPPFLAGS += -I$(top_srcdir)/ClntCfgMgr -I$(top_srcdir)/CfgMgr
dibbler_client_CPPFLAGS += -I$(top_srcdir)/Options -I$(top_srcdir)/ClntOptions
dibbler_client_CPPFLAGS += -I$(top_srcdir)/ClntIfaceMgr -I$(top_srcdir)/IfaceMgr
dibbler_client_CPPFLAGS += -I$(top_srcdir)/AddrMgr -I$(top_srcdir)/ClntAddrMgr
dibbler_client_CPPFLAGS += -I$(top_srcdir)/ClntMessages -I$(top_srcdir)/Messages
dibbler_client_LDADD = -L$(top_builddir)/ClntTransMgr -lClntTransMgr
dibbler_client_LDADD += -L$(top_builddir)/ClntMessages -lClntMessages
dibbler_client_LDADD += -lClntTransMgr
dibbler_client_LDADD += -L$(top_builddir)/ClntOptions -lClntOptions
dibbler_client_LDADD += -L$(top_builddir)/ClntCfgMgr -lClntCfgMgr
dibbler_client_LDADD += -L$(top_builddir)/ClntIfaceMgr -lClntIfaceMgr
dibbler_client_LDADD += -lClntMessages -lClntCfgMgr
dibbler_client_LDADD += -L$(top_builddir)/CfgMgr -lCfgMgr
dibbler_client_LDADD += -L$(top_builddir)/ClntAddrMgr -lClntAddrMgr
dibbler_client_LDADD += -L$(top_builddir)/IfaceMgr -lIfaceMgr
dibbler_client_LDADD += -L$(top_builddir)/AddrMgr -lAddrMgr
dibbler_client_LDADD += -L$(top_builddir)/poslib -lPoslib
dibbler_client_LDADD += -L$(top_builddir)/nettle -lNettle
dibbler_client_LDADD += -L$(top_builddir)/Options -lOptions
dibbler_client_LDADD += -L$(top_builddir)/Messages -lMessages
dibbler_client_LDADD += -lOptions -lMessages
dibbler_client_LDADD += -L$(top_builddir)/@PORT_SUBDIR@ -lLowLevel
dibbler_client_LDADD += -L$(top_builddir)/Misc -lMisc -lClntOptions -lOptions
server: common-libs server-libs
$(MAKE) dibbler-server
dibbler_server_SOURCES = $(top_srcdir)/@PORT_SUBDIR@/dibbler-server.cpp
dibbler_server_SOURCES += $(top_srcdir)/Misc/DHCPServer.cpp $(top_srcdir)/Misc/DHCPServer.h
dibbler_server_CPPFLAGS = -I$(top_srcdir)/Misc -I$(top_srcdir)/SrvTransMgr
dibbler_server_CPPFLAGS += -I$(top_srcdir)/SrvCfgMgr -I$(top_srcdir)/CfgMgr
dibbler_server_CPPFLAGS += -I$(top_srcdir)/Options -I$(top_srcdir)/SrvOptions
dibbler_server_CPPFLAGS += -I$(top_srcdir)/SrvIfaceMgr -I$(top_srcdir)/IfaceMgr
dibbler_server_CPPFLAGS += -I$(top_srcdir)/AddrMgr -I$(top_srcdir)/SrvAddrMgr
dibbler_server_CPPFLAGS += -I$(top_srcdir)/SrvMessages -I$(top_srcdir)/Messages
dibbler_server_LDADD = -L$(top_builddir)/SrvOptions -lSrvOptions
dibbler_server_LDADD += -L$(top_builddir)/SrvMessages -lSrvMessages
dibbler_server_LDADD += -L$(top_builddir)/SrvIfaceMgr -lSrvIfaceMgr
dibbler_server_LDADD += -L$(top_builddir)/SrvCfgMgr -lSrvCfgMgr
dibbler_server_LDADD += -lSrvOptions -lSrvMessages -lSrvIfaceMgr -lSrvCfgMgr
dibbler_server_LDADD += -L$(top_builddir)/SrvTransMgr -lSrvTransMgr
dibbler_server_LDADD += -L$(top_builddir)/SrvAddrMgr -lSrvAddrMgr
dibbler_server_LDADD += -L$(top_builddir)/IfaceMgr -lIfaceMgr
dibbler_server_LDADD += -L$(top_builddir)/AddrMgr -lAddrMgr
dibbler_server_LDADD += -L$(top_builddir)/poslib -lPoslib
dibbler_server_LDADD += -L$(top_builddir)/Options -lOptions
dibbler_server_LDADD += -L$(top_builddir)/Messages -lMessages
dibbler_server_LDADD += -L$(top_builddir)/CfgMgr -lCfgMgr
dibbler_server_LDADD += -L$(top_builddir)/@PORT_SUBDIR@ -lLowLevel
dibbler_server_LDADD += -L$(top_builddir)/Misc -lMisc
dibbler_server_LDADD += -lSrvCfgMgr -lSrvMessages -lCfgMgr -lSrvOptions -lOptions
dibbler_server_LDADD += -lIfaceMgr -lPoslib -lMisc
dibbler_server_LDADD += -L$(top_builddir)/nettle -lNettle
relay: common-libs relay-libs
$(MAKE) dibbler-relay
dibbler_relay_SOURCES = $(top_srcdir)/@PORT_SUBDIR@/dibbler-relay.cpp
dibbler_relay_SOURCES += $(top_srcdir)/Misc/DHCPRelay.cpp $(top_srcdir)/Misc/DHCPRelay.h
dibbler_relay_CPPFLAGS = -I$(top_srcdir)/Misc -I$(top_srcdir)/RelTransMgr
dibbler_relay_CPPFLAGS += -I$(top_srcdir)/RelCfgMgr -I$(top_srcdir)/CfgMgr
dibbler_relay_CPPFLAGS += -I$(top_srcdir)/Options -I$(top_srcdir)/RelOptions
dibbler_relay_CPPFLAGS += -I$(top_srcdir)/RelIfaceMgr -I$(top_srcdir)/IfaceMgr
dibbler_relay_CPPFLAGS += -I$(top_srcdir)/AddrMgr -I$(top_srcdir)/RelAddrMgr
dibbler_relay_CPPFLAGS += -I$(top_srcdir)/RelMessages -I$(top_srcdir)/Messages
dibbler_relay_LDADD = -L$(top_builddir)/RelTransMgr -lRelTransMgr
dibbler_relay_LDADD += -L$(top_builddir)/RelIfaceMgr -lRelIfaceMgr
dibbler_relay_LDADD += -L$(top_builddir)/RelCfgMgr -lRelCfgMgr
dibbler_relay_LDADD += -lRelIfaceMgr
dibbler_relay_LDADD += -L$(top_builddir)/RelMessages -lRelMessages
dibbler_relay_LDADD += -lRelCfgMgr
dibbler_relay_LDADD += -L$(top_builddir)/CfgMgr -lCfgMgr
dibbler_relay_LDADD += -L$(top_builddir)/RelOptions -lRelOptions
dibbler_relay_LDADD += -L$(top_builddir)/IfaceMgr -lIfaceMgr
dibbler_relay_LDADD += -L$(top_builddir)/poslib -lPoslib
dibbler_relay_LDADD += -L$(top_builddir)/Messages -lMessages
dibbler_relay_LDADD += -L$(top_builddir)/Options -lOptions
dibbler_relay_LDADD += -L$(top_builddir)/@PORT_SUBDIR@ -lLowLevel
dibbler_relay_LDADD += -L$(top_builddir)/Misc -lMisc
requestor: common-libs requestor-libs
$(MAKE) dibbler-requestor
dibbler_requestor_SOURCES = $(top_srcdir)/Requestor/Requestor.cpp $(top_srcdir)/Requestor/Requestor.h
dibbler_requestor_CPPFLAGS = -I$(top_srcdir)/Misc -I$(top_srcdir)/Options
dibbler_requestor_CPPFLAGS += -I$(top_srcdir)/Messages -I$(top_srcdir)/Requestor
dibbler_requestor_CPPFLAGS += -I$(top_srcdir)/IfaceMgr
dibbler_requestor_LDADD = -L$(top_builddir)/Requestor -lRequestor
dibbler_requestor_LDADD += -L$(top_builddir)/Messages -lMessages
dibbler_requestor_LDADD += -L$(top_builddir)/IfaceMgr -lIfaceMgr
dibbler_requestor_LDADD += -L$(top_builddir)/Misc -lMisc
dibbler_requestor_LDADD += -L$(top_builddir)/Options -lOptions
dibbler_requestor_LDADD += -L$(top_builddir)/@PORT_SUBDIR@ -lLowLevel
nobase_dist_doc_DATA = CHANGELOG LICENSE RELNOTES
nobase_dist_doc_DATA += scripts/notify-scripts/client-notify-linux.sh
nobase_dist_doc_DATA += scripts/notify-scripts/client-notify-macos.sh
nobase_dist_doc_DATA += scripts/notify-scripts/client-notify-bsd.sh
nobase_dist_doc_DATA += scripts/notify-scripts/server-notify.sh
nobase_dist_doc_DATA += scripts/bison-sanitizer.py scripts/remote-autoconf
dist_noinst_DATA = m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
dist_noinst_DATA += scripts
dist_noinst_DATA += tests
# these are conditional directories. Therefore they are not added to
# dist directory.
bison: bison/bison++
bison/bison++:
@echo "[CONFIG ] /bison++/"
cd $(top_srcdir)/bison++; ./configure --host=$(CHOST) --build=$(CBUILD) >configure.log
@echo "[MAKE ] /bison++/bison++"
$(MAKE) -C $(top_srcdir)/bison++
parser:
$(MAKE) -C SrvCfgMgr parser
$(MAKE) -C ClntCfgMgr parser
$(MAKE) -C RelCfgMgr parser
.PHONY: common-libs