scc

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

Makefile (651B)


      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 	_gettimeofday.$O\
     18 	_sigaction.$O\
     19 	_getrusage.$O\
     20 	_unlink.$O\
     21 
     22 GENSRC = $(GENOBJS:.$O=.s)
     23 
     24 OBJS  = \
     25 	$(GENOBJS)\
     26 	getenv.$O\
     27 	raise.$O\
     28 	signal.$O\
     29 	time.$O\
     30 	clock.$O\
     31 	_cerrno.$O\
     32 	_getheap.$O\
     33 	_tzone.$O\
     34 	_sys_errlist.$O\
     35 
     36 # Rules
     37 
     38 all: $(LIBC) $(CRT)
     39 
     40 $(LIBC): $(OBJS)
     41 	$(MKLST)
     42 
     43 crt.$O: ../crt-posix.s
     44 
     45 $(GENSRC): syscall.lst
     46 	./gensys.sh $(@:.s=)
     47 
     48 dep: inc-dep
     49 
     50 clean:
     51 	rm -f $(GENSRC)
     52 	rm -f _sys_errlist.c
     53 
     54 include deps.mk