Makefile (466B)
1 .POSIX: 2 3 PROJECTDIR =../../../../.. 4 include $(PROJECTDIR)/scripts/rules.mk 5 include ../../../rules.mk 6 7 GENOBJS =\ 8 __close.$O\ 9 __exit.$O\ 10 __fork.$O\ 11 __getpid.$O\ 12 __kill.$O\ 13 __lseek.$O\ 14 __open.$O\ 15 __read.$O\ 16 __sigaction.$O\ 17 __write.$O\ 18 19 OBJS =\ 20 $(GENOBJS)\ 21 _sys_errlist.$O\ 22 23 all: $(OBJS) $(CRT) 24 25 $(CRT): ../crt-posix.s 26 27 $(GENOBJS): syscall.lst 28 ./gensys.sh $(@:.$O=) 29 $(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s) 30 31 clean: 32 rm -f $(GENOBJS:.$O=.s) _sys_errlist.c