scc

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

Makefile (346B)


      1 .POSIX:
      2 
      3 PROJECTDIR =../../../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 include ../../../rules.mk
      6 
      7 GENOBJS =\
      8 	_exit.$O\
      9 
     10 OBJS =\
     11 	$(GENOBJS)\
     12 	_sys_errlist.$O\
     13 
     14 all: $(OBJS) $(CRT)
     15 
     16 $(CRT): ../crt-posix.s
     17 
     18 $(GENOBJS): syscall.lst
     19 	./gensys.sh $(@:.$O=)
     20 	$(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s)
     21 
     22 clean:
     23 	rm -f $(GENOBJS:.$O=.s) _sys_errlist.c