scc

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

Makefile (441B)


      1 .POSIX:
      2 
      3 PROJECTDIR =../../../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 include ../../../rules.mk
      6 
      7 GENOBJS =\
      8 	_brk.$O\
      9 	_close.$O\
     10 	_exit.$O\
     11 	_getpid.$O\
     12 	_kill.$O\
     13 	_lseek.$O\
     14 	_open.$O\
     15 	_read.$O\
     16 	_write.$O\
     17 
     18 OBJS =\
     19 	$(GENOBJS)\
     20 	_sys_errlist.$O\
     21 
     22 GENSRC = $(GENOBJS:.$O=.s)
     23 
     24 # Rules
     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