Makefile (702B)
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 _brk.o \ 15 _getheap.o \ 16 _sigaction.o\ 17 _tzone.o \ 18 getenv.o \ 19 putenv.o \ 20 raise.o \ 21 signal.o \ 22 time.o \ 23 _sys_errlist.o \ 24 crt.o \ 25 26 all: syscall 27 $(MAKE) objs 28 29 objs: $(OBJS) 30 31 crt.o: ../crt-posix.s ../../crt-openbsd.s 32 33 syscall: syscall.lst 34 ./gensys.sh syscall.lst 35 touch syscall 36 37 clean: 38 rm -f `awk '/[0-9]* _/ {print $$2".s"}' syscall.lst` 39 rm -f syscall _sys_errlist.c