From bd32947e35d5da5747a02f0744730cb16077ba39 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 1 Jul 2023 09:26:44 +0200 Subject: Improve makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- generic/build.mk | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 generic/build.mk (limited to 'generic') diff --git a/generic/build.mk b/generic/build.mk new file mode 100644 index 0000000..0b2f531 --- /dev/null +++ b/generic/build.mk @@ -0,0 +1,7 @@ +CFLAGS = -nostdinc -ffreestanding +LDFLAGS = -s + +LD = $(CC) + +true.o false.o: $(MACHINE)/true.c $(MACHINE)/false.c + $(CC) -c -o $@ $(MACHINE)/$(@:.o=.c) $(CFLAGS) -- cgit v1.2.3-70-g09d2