L4Re/departure

Annotated test_files/Makefile

391:bc65615a8fed
2022-06-30 Paul Boddie Added missing structure members. mmap-region-flags
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@376 7
REQUIRES_LIBS	= libc libstdc++ libexec libipc
paul@376 8
paul@155 9
include $(L4DIR)/mk/Makeconf
paul@378 10
paul@378 11
# Attempt to define system details manually, since the following will not work
paul@378 12
# until a complete build has been performed.
paul@378 13
#
paul@378 14
#include $(OBJ_BASE)/l4defs.mk.inc
paul@378 15
paul@378 16
L4_SYSTEM	= $(BUILD_ARCH)_$(CPU)
paul@308 17
paul@308 18
PROGRAMS_DIR	= $(PKGDIR_OBJ)/programs/OBJ-$(L4_SYSTEM)-l4f
paul@155 19
paul@376 20
LIBEXEC_DIR	= $(PKGDIR)/../libexec
paul@376 21
RM_PROGRAM_DIR	= $(call absfilename,$(OBJ_DIR)/$(LIBEXEC_DIR))/rm/OBJ-$(L4_SYSTEM)-l4f
paul@376 22
RM_PROGRAM	= $(RM_PROGRAM_DIR)/exec_region_mapper
paul@376 23
paul@155 24
# Special rules to build the test filesystem.
paul@155 25
paul@313 26
all:: $(TARGET) $(PROGRAMS_DIR)
paul@155 27
paul@376 28
$(TARGET): $(PROGRAMS_DIR) $(RM_PROGRAM)
paul@361 29
	$(MAKE) -C $(E2ACCESS_DIR) && \
paul@376 30
	$(PKGDIR)/mk_e2test.sh -q $(PKGDIR) $(E2ACCESS_DIR) $@ \
paul@376 31
		$(PROGRAMS_DIR)/dstest_* \
paul@376 32
		$(RM_PROGRAM)
paul@308 33
paul@313 34
$(PROGRAMS_DIR): $(PKGDIR)/programs/*.c*
paul@361 35
	$(MAKE) -C $(PKGDIR)/programs $(MKFLAGS) && \
paul@308 36
	touch $@