1 export builddir = @abs_builddir@
2 export srcdir = @abs_srcdir@
3 export top_srcdir = @abs_top_srcdir@
7 export VERSION = @VERSION@
9 CFLAGS_EXTRA += -DVERSION=\"$(VERSION)\"
10 CFLAGS_EXTRA += -I $(srcdir)/.. -I $(srcdir)/datapath/ -I $(top_srcdir)/include
12 # Files shared between 2.4 and 2.6 builds
14 SHAREDFILES = ../chain.c ../crc32.c ../table-hash.c ../table-linear.c \
15 ../table-mac.c ../forward.c ../flow.c ../unit-exports.c \
16 ../datapath_t.c ../dp_dev.c \
17 compat-2.6/genetlink.c \
20 HFILES = ../datapath.h ../chain.h ../crc32.h ../flow.h ../forward.h \
21 ../table.h ../datapath_t.h \
22 compat-2.6/include/compat26.h \
23 compat-2.6/include/linux/ip.h \
24 compat-2.6/include/linux/ipv6.h \
25 compat-2.6/include/linux/lockdep.h \
26 compat-2.6/include/linux/mutex.h \
27 compat-2.6/include/linux/netlink.h \
28 compat-2.6/include/linux/random.h \
29 compat-2.6/include/linux/skbuff.h \
30 compat-2.6/include/linux/tcp.h \
31 compat-2.6/include/linux/timer.h \
32 compat-2.6/include/linux/types.h \
33 compat-2.6/include/linux/udp.h \
34 compat-2.6/include/net/checksum.h \
35 compat-2.6/include/net/genetlink.h
37 SIMLINKFILES = $(patsubst ../%,%, $(SHAREDFILES))
39 CFILES = datapath.c $(SIMLINKFILES)
41 # Testing files used for both 2.6 and 2.4 kernels. Are symlinked
43 SHARED_T_FILES = ../table_t.c ../crc_t.c ../forward_t.c ../unit.c
45 UNIT_CFILES = $(patsubst ../%,%, $(SHARED_T_FILES))
47 # General rule to create symlinks of shared files
51 # Conditional include so that make dist doesn't puke when
52 # this build isn't turned on by automake
54 include $(srcdir)/kbuild.inc