scc

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

Makefile (465B)


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