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