scc

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

Makefile (598B)


      1 .POSIX:
      2 PROJECTDIR =../../../../..
      3 include $(PROJECTDIR)/scripts/rules.mk
      4 include ../../../rules.mk
      5 
      6 GENOBJS =\
      7 	_Exit.$O\
      8 	_close.$O\
      9 	_brk.$O\
     10 	_getpid.$O\
     11 	_kill.$O\
     12 	_lseek.$O\
     13 	_openat.$O\
     14 	_read.$O\
     15 	_write.$O\
     16 	_sigaction.$O\
     17 
     18 GENSRC = $(GENOBJS:.$O=.s)
     19 
     20 OBJS =\
     21 	$(GENOBJS)\
     22 	_cerrno.$O\
     23 	_getheap.$O\
     24 	_open.$O\
     25 	_tzone.$O\
     26 	getenv.$O\
     27 	raise.$O\
     28 	signal.$O\
     29 	time.$O\
     30 	_sys_errlist.$O\
     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