Makefile (675B)
1 .POSIX: 2 PROJECTDIR =../../../../.. 3 include $(PROJECTDIR)/scripts/rules.mk 4 include ../../../rules.mk 5 6 OBJS = __Exit.o \ 7 __close.o \ 8 __getpid.o \ 9 __kill.o \ 10 __lseek.o \ 11 __open.o \ 12 __read.o \ 13 __write.o \ 14 __sigaction.o\ 15 _getheap.o \ 16 _tzone.o \ 17 getenv.o \ 18 putenv.o \ 19 raise.o \ 20 signal.o \ 21 time.o \ 22 _sys_errlist.o \ 23 crt.o \ 24 25 all: syscall 26 $(MAKE) objs 27 28 objs: $(OBJS) 29 30 crt.o: ../crt-posix.s 31 32 syscall: syscall.lst 33 ./gensys.sh syscall.lst 34 touch syscall 35 36 clean: 37 rm -f `awk '$$2 ~ /^__/ {print $$2".s"}' syscall.lst` 38 rm -f syscall _sys_errlist.c