basekernel/user/Makefile

17 lines
469 B
Makefile
Raw Normal View History

2024-10-14 23:09:32 +02:00
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