paul@155 | 1 | PKGDIR ?= . |
paul@155 | 2 | L4DIR ?= $(PKGDIR)/../../.. |
paul@155 | 3 | |
paul@238 | 4 | E2ACCESS_DIR = $(PKGDIR)/../libe2access/host |
paul@155 | 5 | TARGET = $(PKGDIR)/../conf/e2test.fs |
paul@155 | 6 | |
paul@155 | 7 | include $(L4DIR)/mk/Makeconf |
paul@308 | 8 | include $(OBJ_BASE)/l4defs.mk.inc |
paul@308 | 9 | |
paul@308 | 10 | PROGRAMS_DIR = $(PKGDIR_OBJ)/programs/OBJ-$(L4_SYSTEM)-l4f |
paul@155 | 11 | |
paul@155 | 12 | # Special rules to build the test filesystem. |
paul@155 | 13 | |
paul@313 | 14 | all:: $(TARGET) $(PROGRAMS_DIR) |
paul@155 | 15 | |
paul@313 | 16 | $(TARGET): $(PROGRAMS_DIR) |
paul@238 | 17 | make -C $(E2ACCESS_DIR) |
paul@308 | 18 | $(PKGDIR)/mk_e2test.sh -q $(PKGDIR) $(PROGRAMS_DIR) $(E2ACCESS_DIR) $@ |
paul@308 | 19 | |
paul@313 | 20 | $(PROGRAMS_DIR): $(PKGDIR)/programs/*.c* |
paul@358 | 21 | make -C $(PKGDIR)/programs $(MKFLAGS) && \ |
paul@308 | 22 | touch $@ |