scc

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

Makefile (577B)


      1 .POSIX:
      2 
      3 PROJECTDIR =../../../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 include ../../../rules.mk
      6 
      7 GENOBJS =\
      8 	_Exit.$O\
      9 	_close.$O\
     10 	_getpid.$O\
     11 	_kill.$O\
     12 	_lseek.$O\
     13 	_open.$O\
     14 	_read.$O\
     15 	_write.$O\
     16 	_brk.$O\
     17 
     18 GENSRC = $(GENOBJS:.$O=.s)
     19 
     20 OBJS =\
     21 	$(GENOBJS)\
     22 	getenv.$O\
     23 	raise.$O\
     24 	signal.$O\
     25 	time.$O\
     26 	_getheap.$O\
     27 	_sigaction.$O\
     28 	_tzone.$O\
     29 	_sys_errlist.$O\
     30 
     31 # Rules
     32 
     33 all: $(LIBC) $(CRT)
     34 
     35 $(LIBC): $(OBJS)
     36 	$(MKLST)
     37 
     38 crt.$O: ../crt-posix.s
     39 
     40 $(GENSRC): syscall.lst
     41 	./gensys.sh $(@:.s=)
     42 
     43 dep: inc-dep
     44 
     45 clean:
     46 	rm -f $(GENSRC)
     47 	rm -f _sys_errlist.c
     48 
     49 include deps.mk