diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-11-02 15:28:23 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-11-02 15:28:23 +0200 |
| commit | d127146846f4d6561e15000d1469b715dafdb627 (patch) | |
| tree | 2ee7d7512023df0dc25f0bd51da1c378ebb1a400 /tests/scripts/makefile | |
| parent | 4ce6aa975be40286465cd9ac6a669ff5a95fe5a1 (diff) | |
| download | kmi-d127146846f4d6561e15000d1469b715dafdb627.tar.gz kmi-d127146846f4d6561e15000d1469b715dafdb627.zip | |
initial exec support
Diffstat (limited to 'tests/scripts/makefile')
| -rw-r--r-- | tests/scripts/makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/scripts/makefile b/tests/scripts/makefile index ed2b2b4..63150b1 100644 --- a/tests/scripts/makefile +++ b/tests/scripts/makefile @@ -15,7 +15,8 @@ OBFLAGS := -ffreestanding -nostdlib -std=c17 -g -O2 INCLUDEFLAGS := -I ../include -I. WARNFLAGS := -Wall -Wextra DEPFLAGS = -MT $@ -MMD -MP -MF $@.d -COMPILE_TEST = $(COMPILER) $(WARNFLAGS) $(INCLUDEFLAGS) $(DEPFLAGS) $(OBFLAGS) $(ARCH_FLAGS) +COMPILE_TEST = $(COMPILER) $(WARNFLAGS) $(INCLUDEFLAGS) \ + $(DEPFLAGS) $(OBFLAGS) $(ARCH_FLAGS) GEN_INITRD := cpio -H newc -o > QEMU := qemu-system-$(ARCH) -machine virt -kernel ../kmi.bin \ @@ -27,11 +28,14 @@ QEMU := qemu-system-$(ARCH) -machine virt -kernel ../kmi.bin \ -initrd KMI := ../kmi.bin -COMMON := build/printf.o +COMMON := build/printf.o build/string.o build/printf.o: common/printf.c $(KMI) $(COMPILE_TEST) -c common/printf.c -o build/printf.o +build/string.o: common/string.c $(KMI) + $(COMPILE_TEST) -c common/string.c -o build/string.o + include tests.mk .PHONY: check |
