1 export builddir = @abs_builddir@
2 export srcdir = @abs_srcdir@
3 export top_srcdir = @abs_top_srcdir@
4 export KSRC = @KSRCUML@
7 export VERSION = @VERSION@
12 CFLAGS_EXTRA += -DVERSION=\"$(VERSION)\"
13 CFLAGS_EXTRA += -I $(srcdir)/.. -I $(top_srcdir)/include
15 # Files shared between 2.4 and 2.6 builds
17 SHAREDFILES = ../chain.c ../crc32.c ../table-hash.c ../table-linear.c \
18 ../table-mac.c ../forward.c ../flow.c ../unit-exports.c \
21 HFILES = ../openflow.h ../chain.h ../crc32.h ../flow.h ../forward.h \
22 ../table.h ../datapath_t.h
24 SIMLINKFILES = $(patsubst ../%,%, $(SHAREDFILES))
26 CFILES = openflow.c $(SIMLINKFILES)
28 # Testing files used for both 2.6 and 2.4 kernels. Are symlinked
30 SHARED_T_FILES = ../table_t.c ../crc_t.c ../unit.c
31 UNIT_CFILES = $(patsubst ../%,%, $(SHARED_T_FILES))
33 # General rule to create symlinks of shared files
37 # Conditional include so that make dist doesn't puke when
38 # this build isn't turned on by automake
40 include $(srcdir)/kbuild.inc