17 lines
469 B
Makefile
17 lines
469 B
Makefile
|
|
||
|
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
|