scc

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

Makefile (532B)


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