scc

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

Makefile (449B)


      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 	_fork.$O\
     12 	_getpid.$O\
     13 	_kill.$O\
     14 	_lseek.$O\
     15 	_open.$O\
     16 	_read.$O\
     17 	_write.$O\
     18 
     19 OBJS =\
     20 	$(GENOBJS)\
     21 	_sys_errlist.$O\
     22 
     23 all: $(OBJS) $(CRT)
     24 
     25 $(CRT): ../crt-posix.s
     26 
     27 $(GENOBJS): syscall.lst
     28 	./gensys.sh $(@:.$O=)
     29 	$(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s)
     30 
     31 clean:
     32 	rm -f $(GENOBJS:.$O=.s) _sys_errlist.c