scc

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

Makefile (601B)


      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 	_brk.$O\
     11 	_getpid.$O\
     12 	_kill.$O\
     13 	_lseek.$O\
     14 	_openat.$O\
     15 	_read.$O\
     16 	_write.$O\
     17 	_sigaction.$O\
     18 
     19 GENSRC = $(GENOBJS:.$O=.s)
     20 
     21 OBJS =\
     22 	$(GENOBJS)\
     23 	_cerrno.$O\
     24 	_getheap.$O\
     25 	_open.$O\
     26 	_tzone.$O\
     27 	getenv.$O\
     28 	raise.$O\
     29 	signal.$O\
     30 	time.$O\
     31 	_sys_errlist.$O\
     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 syscall _sys_errlist.c
     48 
     49 include deps.mk