Makefile (501B)
1 .POSIX: 2 3 PROJECTDIR = ../../../../.. 4 5 include $(PROJECTDIR)/scripts/rules.mk 6 include ../../../rules.mk 7 8 GENOBJS =\ 9 _close.$O\ 10 _execve.$O\ 11 _exit.$O\ 12 _getpid.$O\ 13 _kill.$O\ 14 _lseek.$O\ 15 _openat.$O\ 16 _read.$O\ 17 __sigaction.$O\ 18 _sys_brk.$O\ 19 _write.$O\ 20 _wait4.$O\ 21 22 OBJS =\ 23 $(GENOBJS)\ 24 _cerrno.$O\ 25 _sys_errlist.$O\ 26 27 all: $(OBJS) $(CRT) 28 29 $(CRT): ../crt-posix.s 30 31 $(GENOBJS): syscall.lst 32 ./gensys.sh $(@:.$O=) 33 $(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s) 34 35 clean: 36 rm -f $(GENOBJS:.$O=.s) _sys_errlist.c