export builddir = @abs_builddir@ export srcdir = @abs_srcdir@ export top_srcdir = @abs_top_srcdir@ export KSRC = @KSRCUML@ export KVERSION = 2.6 export VMDIR = @VMDIR@ export VERSION = @VERSION@ ARCH = um export ARCH CFLAGS_EXTRA += -DVERSION=\"$(VERSION)\" CFLAGS_EXTRA += -I $(srcdir)/.. -I $(top_srcdir)/include # Files shared between 2.4 and 2.6 builds SHAREDFILES = ../chain.c ../crc32.c ../table-hash.c ../table-linear.c \ ../table-mac.c ../forward.c ../flow.c ../unit-exports.c \ ../datapath_t.c HFILES = ../openflow.h ../chain.h ../crc32.h ../flow.h ../forward.h \ ../table.h ../datapath_t.h SIMLINKFILES = $(patsubst ../%,%, $(SHAREDFILES)) CFILES = openflow.c $(SIMLINKFILES) # Testing files used for both 2.6 and 2.4 kernels. Are symlinked # locally SHARED_T_FILES = ../table_t.c ../crc_t.c ../unit.c UNIT_CFILES = $(patsubst ../%,%, $(SHARED_T_FILES)) # General rule to create symlinks of shared files %.c : ../%.c ln -s $< $@ # Conditional include so that make dist doesn't puke when # this build isn't turned on by automake ifneq (,$(KSRC)) include $(srcdir)/kbuild.inc else clean: endif distclean : clean distdir : clean install : all: default check: all