From 124d789899f5e13450838afbce0ce678e07597c7 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 14 Oct 2024 23:09:32 +0200 Subject: [PATCH] Mon 14 Oct 23:09:15 CEST 2024 --- user/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 user/Makefile diff --git a/user/Makefile b/user/Makefile new file mode 100644 index 0000000..1482b9a --- /dev/null +++ b/user/Makefile @@ -0,0 +1,16 @@ + +include ../Makefile.config + +USER_PROGRAMS=ball.exe clock.exe copy.exe livestat.exe manager.exe fractal.exe procstat.exe saver.exe shell.exe snake.exe sysstat.exe + +all: $(USER_PROGRAMS) + +%.o: %.c + ${CC} ${KERNEL_CCFLAGS} -O2 -I ../include $< -o $@ + +%.exe: %.o ../library/user-start.o ../library/baselib.a + ${LD} ${KERNEL_LDFLAGS} -Ttext 0x80000000 ../library/user-start.o $< ../library/baselib.a -o $@ + ${OBJCOPY} -R .comment --strip-debug $@ + +clean: + rm -rf *.exe *.o