blob: da30f94788f2ad82e361638bb72a4b551171dab2 [file] [log] [blame]
Kyle Swenson2f12aa32021-03-26 10:44:49 -06001ROOT ?= $(abspath ../../..)
2include $(ROOT)/Makefile.config
3
4DEPMOD := "$(CPGPL)/usr/busybox/examples/depmod.pl"
5EXTRA_CFLAGS := -DSFE_SUPPORT_IPV6
6
7unexport CC CPP LD CFLAGS CPPFLAGS LDFLAGS AR RANLIB
8
9SUBS = simulated-driver shortcut-fe
10
11SUBS_CLEAN = $(patsubst %,%-clean, $(SUBS))
12SUBS_INSTALL = $(patsubst %,%-install, $(SUBS))
13
14default: $(SUBS)
15
16$(SUBS): .PHONY
17 $(MAKE) -C $(CPKERN) M=$(CURDIR)/$@ EXTRA_CFLAGS="$(EXTRA_CFLAGS)" SFE_SUPPORT_IPV6=1
18
19$(SUBS_CLEAN): .PHONY
20 $(MAKE) -C $(CPKERN) M=$(CURDIR)/$(patsubst %-clean,%, $@) clean
21
22$(SUBS_INSTALL): .PHONY
23 $(MAKE) -C $(CPKERN) M=$(CURDIR)/$(patsubst %-install,%, $@) INSTALL_MOD_PATH=$(DESTDIR) DEPMOD=$(DEPMOD) modules_install
24
25install: $(SUBS_INSTALL)
26
27clean: $(SUBS_CLEAN)
28
29.PHONY: