scc

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

Makefile (469B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../../../../..
      4 
      5 include $(PROJECTDIR)/scripts/rules.mk
      6 include ../../../rules.mk
      7 
      8 GENOBJS =\
      9 	_close.$O\
     10 	_exit.$O\
     11 	_getpid.$O\
     12 	_kill.$O\
     13 	_lseek.$O\
     14 	_openat.$O\
     15 	_read.$O\
     16 	_sigaction.$O\
     17 	_sys_brk.$O\
     18 	_write.$O\
     19 
     20 OBJS =\
     21 	$(GENOBJS)\
     22 	_cerrno.$O\
     23 	_sys_errlist.$O\
     24 
     25 GENSRC = $(GENOBJS:.$O=.s)
     26 
     27 all: $(OBJS) $(CRT)
     28 
     29 $(CRT): ../crt-posix.s
     30 
     31 $(GENSRC): syscall.lst
     32 	./gensys.sh $(@:.s=)
     33 
     34 clean:
     35 	rm -f $(GENSRC) _sys_errlist.c
     36 
     37 include deps.mk