scc

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

Makefile (513B)


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