Makefile (543B)
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 all: $(CRT) $(OBJS) 32 33 $(CRT): ../crt-posix.s 34 35 $(GENOBJS): syscall.lst 36 ./gensys.sh $(@:.$O=) 37 $(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s) 38 39 clean: 40 rm -f $(GENOBJS:.$O=.s) _sys_errlist.c