scc

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

Makefile (465B)


      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 	_getpid.$O\
     11 	_kill.$O\
     12 	_lseek.$O\
     13 	_open.$O\
     14 	_read.$O\
     15 	_sigaction.$O\
     16 	_sys_brk.$O\
     17 	_write.$O\
     18 
     19 GENSRC = $(GENOBJS:.$O=.s)
     20 
     21 OBJS =\
     22 	$(GENOBJS)\
     23 	_cerrno.$O\
     24 	_sys_errlist.$O\
     25 
     26 all: $(OBJS) $(CRT)
     27 
     28 crt.$O: ../crt-posix.s
     29 
     30 $(GENSRC): syscall.lst
     31 	./gensys.sh $(@:.s=)
     32 
     33 clean:
     34 	rm -f $(GENSRC) _sys_errlist.c
     35 
     36 include deps.mk