-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.am
52 lines (40 loc) · 2.53 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
AM_CFLAGS = -g -Wall -Iinclude -Ilklinclude
GTKFLGS = `pkg-config --cflags gtk+-2.0 gtksourceview-1.0`
GTKLIBS = `pkg-config --libs gtk+-2.0 gtksourceview-1.0`
LKL = lkl/lkl.a
bin_PROGRAMS = bin/hyper bin/hypergui bin/router bin/switch bin/firewall bin/nat bin/hub bin/bridge bin/echo
lib_LIBRARIES = liblklnetconfig.a
liblklnetconfig_a_SOURCES = config/config.c config/parser.l
bin_hyper_SOURCES = hypervisor/hypervisor.c hypervisor/hypervisor_cmd.c console.c autocomplete.c interface.c device.c
bin_hyper_CFLAGS = -DISHYPERVISOR $(AM_CFLAGS)
bin_hyper_LDADD = liblklnetconfig.a
bin_hyper_LINK = $(CCLD) -pthread -lreadline -o $@
bin_hypergui_SOURCES = hypervisor/hypergui.c hypervisor/hypervisor_cmd.c console.c autocomplete.c interface.c device.c gtktopology.c
bin_hypergui_CFLAGS = -DISHYPERVISOR $(AM_CFLAGS) $(GTKFLGS)
bin_hypergui_LDADD = liblklnetconfig.a
bin_hypergui_LINK = $(CCLD) -lm -pthread -lreadline $(GTKLIBS) -o $@
bin_router_SOURCES = devices/router/router_cmd.c devices/router/router.c interface.c devices/switch/switch_cmd.c device.c console.c devices/firewall/firewall_cmd.c devices/nat/nat_cmd.c autocomplete.c ipt_common.c
bin_router_CFLAGS = -DISROUTER -DISLKL -DISNAT -DISFIREWALL $(AM_CFLAGS)
bin_router_LDADD = liblklnetconfig.a lkl/lkl.a
bin_router_LINK = $(CCLD) -pthread -lreadline -o $@
bin_switch_SOURCES = devices/switch/switch.c devices/switch/switch_cmd.c interface.c topology.c console.c autocomplete.c devices/router/router_cmd.c device.c
bin_switch_CFLAGS = -DISSWITCH -DISLKL $(AM_CFLAGS)
bin_switch_LDADD = liblklnetconfig.a lkl/lkl.a
bin_switch_LINK = $(CCLD) -pthread -lreadline -o $@
bin_firewall_SOURCES = devices/firewall/firewall.c devices/firewall/firewall_cmd.c ipt_common.c interface.c topology.c console.c autocomplete.c device.c
bin_firewall_CFLAGS = -DISFIREWALL -DISLKL $(AM_CFLAGS)
bin_firewall_LDADD = liblklnetconfig.a lkl/lkl.a
bin_firewall_LINK = $(CCLD) -pthread -lreadline -o $@
bin_nat_SOURCES = devices/nat/nat.c devices/nat/nat_cmd.c ipt_common.c interface.c topology.c console.c autocomplete.c device.c
bin_nat_CFLAGS = -DISNAT -DISLKL $(AM_CFLAGS)
bin_nat_LDADD = liblklnetconfig.a lkl/lkl.a
bin_nat_LINK = $(CCLD) -pthread -lreadline -o $@
bin_hub_SOURCES = devices/hub/hub.c device.c interface.c
bin_hub_LDADD = liblklnetconfig.a
bin_bridge_SOURCES = devices/bridge/bridge.c packet.c interface.c device.c
bin_bridge_LDADD = liblklnetconfig.a
bin_bridge_LINK = $(CCLD) -pthread -o $@
bin_echo_SOURCES = apps/test.c
bin_echo_CFLAGS = $(AM_CFLAGS)
bin_echo_LDADD = lkl/lkl.a
bin_echo_LINK = $(CCLD) -pthread -o $@