blob: da30f94788f2ad82e361638bb72a4b551171dab2 [file] [log] [blame]
ROOT ?= $(abspath ../../..)
include $(ROOT)/Makefile.config
DEPMOD := "$(CPGPL)/usr/busybox/examples/depmod.pl"
EXTRA_CFLAGS := -DSFE_SUPPORT_IPV6
unexport CC CPP LD CFLAGS CPPFLAGS LDFLAGS AR RANLIB
SUBS = simulated-driver shortcut-fe
SUBS_CLEAN = $(patsubst %,%-clean, $(SUBS))
SUBS_INSTALL = $(patsubst %,%-install, $(SUBS))
default: $(SUBS)
$(SUBS): .PHONY
$(MAKE) -C $(CPKERN) M=$(CURDIR)/$@ EXTRA_CFLAGS="$(EXTRA_CFLAGS)" SFE_SUPPORT_IPV6=1
$(SUBS_CLEAN): .PHONY
$(MAKE) -C $(CPKERN) M=$(CURDIR)/$(patsubst %-clean,%, $@) clean
$(SUBS_INSTALL): .PHONY
$(MAKE) -C $(CPKERN) M=$(CURDIR)/$(patsubst %-install,%, $@) INSTALL_MOD_PATH=$(DESTDIR) DEPMOD=$(DEPMOD) modules_install
install: $(SUBS_INSTALL)
clean: $(SUBS_CLEAN)
.PHONY: