scc

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

Makefile (448B)


      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 	__write.$O\
     17 
     18 GENSRC = $(GENOBJS:.$O=.s)
     19 
     20 OBJS  =\
     21 	$(GENOBJS)\
     22 	_sys_errlist.$O\
     23 
     24 all: $(OBJS) $(CRT)
     25 
     26 crt.$O: ../crt-posix.s
     27 
     28 $(GENSRC): syscall.lst
     29 	./gensys.sh $(@:.s=)
     30 
     31 clean:
     32 	rm -f $(GENSRC) _sys_errlist.c
     33 
     34 include deps.mk