Kyle Swenson | 2f12aa3 | 2021-03-26 10:44:49 -0600 | [diff] [blame] | 1 | ROOT ?= $(abspath ../../..) |
| 2 | include $(ROOT)/Makefile.config |
| 3 | |
| 4 | DEPMOD := "$(CPGPL)/usr/busybox/examples/depmod.pl" |
| 5 | EXTRA_CFLAGS := -DSFE_SUPPORT_IPV6 |
| 6 | |
| 7 | unexport CC CPP LD CFLAGS CPPFLAGS LDFLAGS AR RANLIB |
| 8 | |
| 9 | SUBS = simulated-driver shortcut-fe |
| 10 | |
| 11 | SUBS_CLEAN = $(patsubst %,%-clean, $(SUBS)) |
| 12 | SUBS_INSTALL = $(patsubst %,%-install, $(SUBS)) |
| 13 | |
| 14 | default: $(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 | |
| 25 | install: $(SUBS_INSTALL) |
| 26 | |
| 27 | clean: $(SUBS_CLEAN) |
| 28 | |
| 29 | .PHONY: |