asterinas/regression/apps/Makefile

23 lines
707 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: MPL-2.0
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
2024-02-29 09:05:35 +00:00
all: $(TEST_APPS) scripts
.PHONY: $(TEST_APPS)
$(TEST_APPS):
@make --no-print-directory -C $@
$(REGRESSION_BUILD_DIR):
@mkdir -p $@
.PHONY: scripts
scripts: | $(REGRESSION_BUILD_DIR)
2023-07-05 06:08:58 +00:00
@make --no-print-directory BUILD_DIR=$(REGRESSION_BUILD_DIR) -C scripts