2 # Lightweight Autonomic Network Architecture
4 # Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,
5 # Swiss federal institute of technology (ETH Zurich)
9 LD_NORM
= echo
"LD $<"; \
11 CC_NORM
= echo
"CC $<"; \
17 MAKEFLAGS
+= --no-print-directory
22 CFLAGS
+= -O2
-fno-delete-null-pointer-checks
-std
=gnu99
-pedantic
23 CFLAGS
+= -fstack-protector
-D_FORTIFY_SOURCE
=2 -fPIE
-D_REENTRANT
24 CFLAGS
+= -fno-strict-aliasing
25 CFLAGS
+= -Wall
-Werror
-Wundef
-Wstrict-prototypes
-Wuninitialized
39 build
: build_vlink build_fbctl
41 build_vlink
: $(vlink-objs
)
42 @
$(LD
) $(vlink-targ
) $(vlink-objs
) $(vlink-libs
)
44 build_fbctl
: $(fbctl-objs
)
45 @
$(LD
) $(fbctl-targ
) $(fbctl-objs
) $(fbctl-libs
)
48 @
$(CC
) $(CFLAGS
) $(INCLUDE
) $<
51 @
install -D
$(vlink-targ
) $(DESTDIR
)/$(BINDIR
)/$(vlink-targ
)
52 @
install -D
$(fbctl-targ
) $(DESTDIR
)/$(BINDIR
)/$(fbctl-targ
)
55 @
rm $(DESTDIR
)/$(BINDIR
)/$(vlink-targ
)
56 @
rm $(DESTDIR
)/$(BINDIR
)/$(fbctl-targ
)
59 @
rm *.o
*~
$(vlink-targ
) $(fbctl-targ
)
62 @echo
"make <targets>"
63 @echo
"available targets:"
64 @echo
" build - Builds source"
65 @echo
" clean - Removes generated files"
66 @echo
" install - Installs userspace tools into system"
67 @echo
" uninstall - Removes userspace tools from system"
68 @echo
" help - Shows this help"