scc

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

Makefile (509B)


      1 .POSIX:
      2 
      3 PROJECTDIR =../../../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 include ../../../rules.mk
      6 
      7 GENOBJS =\
      8 	_brk.$O\
      9 	_close.$O\
     10 	_exit.$O\
     11 	_getpid.$O\
     12 	_kill.$O\
     13 	_lseek.$O\
     14 	_open.$O\
     15 	_read.$O\
     16 	_sigaction2.$O\
     17 	_write.$O\
     18 
     19 GENSRC = $(GENOBJS:.$O=.s)
     20 
     21 OBJS =\
     22 	$(GENOBJS)\
     23 	_sys_errlist.$O\
     24 
     25 all: $(LIBC) $(CRT)
     26 
     27 $(LIBC): $(OBJS)
     28 	$(MKLST)
     29 
     30 crt.$O: ../crt-posix.s ../openbsd/crt.s
     31 
     32 $(GENSRC): syscall.lst
     33 	./gensys.sh $(@:.s=)
     34 
     35 clean:
     36 	rm -f $(GENSRC)
     37 	rm -f syscall _sys_errlist.c
     38 
     39 include deps.mk