scc

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

Makefile (585B)


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