scc

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

Makefile (593B)


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