diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-26 18:34:24 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-26 18:34:24 +0300 |
| commit | eff7f52c368df5dc662d54956de5aa3b2b9ee936 (patch) | |
| tree | f3ba4e898e3aea5377e0227442044c9bf296d45f /tests/scripts/makefile | |
| parent | a9d61501eb0200576bb08ba4b287f66177253ad9 (diff) | |
| download | kmi-eff7f52c368df5dc662d54956de5aa3b2b9ee936.tar.gz kmi-eff7f52c368df5dc662d54956de5aa3b2b9ee936.zip | |
simplify tests
Diffstat (limited to 'tests/scripts/makefile')
| -rw-r--r-- | tests/scripts/makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/scripts/makefile b/tests/scripts/makefile index 530e0bb..7b861e2 100644 --- a/tests/scripts/makefile +++ b/tests/scripts/makefile @@ -12,7 +12,8 @@ COMPILER != [ "$(LLVM)" != "0" ] \ OBFLAGS := -ffreestanding -nostdlib -std=c17 -g INCLUDEFLAGS := -I ../include -I. WARNFLAGS := -Wall -Wextra -COMPILE_TEST := $(COMPILER) $(WARNFLAGS) $(INCLUDEFLAGS) $(OBFLAGS) +DEPFLAGS = -MT $@ -MMD -MP -MF $@.d +COMPILE_TEST = $(COMPILER) $(WARNFLAGS) $(INCLUDEFLAGS) $(DEPFLAGS) $(OBFLAGS) GEN_INITRD := cpio -H newc -o > QEMU := qemu-system-$(ARCH) -machine virt -kernel ../kmi.bin \ @@ -26,7 +27,7 @@ QEMU := qemu-system-$(ARCH) -machine virt -kernel ../kmi.bin \ KMI := ../kmi.bin COMMON := build/printf.o -build/printf.o: common/printf.c +build/printf.o: common/printf.c $(KMI) $(COMPILE_TEST) -c common/printf.c -o build/printf.o include tests.mk |
