replace same ds with generic one
[ana-net.git] / src / Makefile
blob8405e94a2e4dba172c552017b60182154dc597b7
2 # Lightweight Autonomic Network Architecture
4 # Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,
5 # Swiss federal institute of technology (ETH Zurich)
6 # Subject to the GPL.
9 # LANA core backend
10 lana-y := core.o \
11 xt_vlink.o \
12 xt_engine.o \
13 xt_fblock.o \
14 xt_builder.o \
15 xt_critbit.o \
16 xt_user.o
17 obj-m += lana.o
19 # Some of the optional modules are packed, so that we have two or more
20 # packages: lana.ko and each loadable functional block
22 # Test modules
23 obj-m += fb_dummy.o
25 # Real modules
26 obj-m += fb_eth.o
27 obj-m += fb_ethvlink.o
28 obj-m += fb_pflana.o
30 MDIR := /lib/modules/$(shell uname -r)
31 KDIR := $(MDIR)/build
32 DEST := $(MDIR)/kernel/drivers/net/lana/
34 all: build
36 build:
37 make -C $(KDIR) M=$(PWD) modules
39 install:
40 @install -d $(DEST)
41 @cp -r *.ko $(DEST)
42 @echo "modules installed"
43 @depmod
44 @echo "modules.dep regenerated"
46 uninstall:
47 @rm -rf $(DEST)
48 @echo "modules uninstalled"
49 @depmod
50 @echo "modules.dep regenerated"
52 load_core:
53 # modprobes here
54 @echo "not now"
56 unload_core:
57 # rmmods here
58 @echo "not now"
60 clean:
61 make -C $(KDIR) M=$(PWD) clean
63 help:
64 @echo "make <targets>"
65 @echo "available targets:"
66 @echo " build - Builds source"
67 @echo " clean - Removes generated files"
68 @echo " install - Installs .ko files into system"
69 @echo " uninstall - Removes .ko files from system"
70 @echo " load_core - Loads core modules into the kernel"
71 @echo " unload_core - Unloads core modules from the kernel"
72 @echo " help - Shows this help"