Makefile (517B)
1 .POSIX: 2 3 PROJECTDIR = ../../../../.. 4 RULES = user 5 6 include $(PROJECTDIR)/scripts/rules.mk 7 include ../../../rules.mk 8 9 GENOBJS =\ 10 _access.$O\ 11 _close.$O\ 12 _creat.$O\ 13 _execve.$O\ 14 _exit.$O\ 15 _fork.$O\ 16 _getpid.$O\ 17 _kill.$O\ 18 _link.$O\ 19 _open.$O\ 20 _read.$O\ 21 _sys_brk.$O\ 22 _unlink.$O\ 23 _write.$O\ 24 _wait4.$O\ 25 26 OBJS =\ 27 $(GENOBJS)\ 28 _cerrno.o\ 29 _sys_errlist.o\ 30 31 GENSRC = $(GENOBJS:.o=.s) 32 33 all: $(CRT) $(OBJS) 34 35 $(CRT): ../crt-posix.s 36 37 $(GENSRC): syscall.lst 38 ./gensys.sh $(@:.s=) 39 40 clean: 41 rm -f $(GENSRC) _sys_errlist.c