asterinas/regression/apps/Makefile

16 lines
615 B
Makefile
Raw Normal View History

2023-05-29 05:29:53 +00:00
MAKEFLAGS += --no-builtin-rules # Prevent the implicit rules from compiling ".c" or ".s" files automatically.
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CUR_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
INITRAMFS ?= $(CUR_DIR)/../build/initramfs
2023-07-05 06:08:58 +00:00
REGRESSION_BUILD_DIR ?= $(INITRAMFS)/regression
2023-08-01 06:18:23 +00:00
TEST_APPS := signal_c pthread network hello_world hello_pie hello_c fork_c fork execve pty
2023-05-29 05:29:53 +00:00
.PHONY: all
2023-07-05 06:08:58 +00:00
all:
@mkdir -p $(REGRESSION_BUILD_DIR)
@for test_app in $(TEST_APPS); \
do make --no-print-directory -C $${test_app}; \
done
@make --no-print-directory BUILD_DIR=$(REGRESSION_BUILD_DIR) -C scripts