scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

Makefile (513B)


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