scc

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

Makefile (345B)


      1 .POSIX:
      2 PROJECTDIR =../../../../..
      3 include $(PROJECTDIR)/scripts/rules.mk
      4 include ../../../rules.mk
      5 
      6 GENOBJS =
      7 
      8 GENSRC = $(GENOBJS:.$O=.s)
      9 
     10 OBJS  = \
     11 	$(GENOBJS)\
     12 
     13 # Rules
     14 
     15 all: $(LIBC) $(CRT)
     16 
     17 $(LIBC): $(OBJS)
     18 	$(MKLST)
     19 
     20 crt.$O: ../crt-posix.s
     21 
     22 $(GENSRC): syscall.lst
     23 	gensys.sh $(@:.s=)
     24 
     25 dep: inc-dep
     26 
     27 clean:
     28 	rm -f $(GENSRC)
     29 
     30 include deps.mk