scc

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

Makefile (499B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../../../../..
      4 RULES = user
      5 
      6 include $(PROJECTDIR)/scripts/rules.mk
      7 include ../../../rules.mk
      8 
      9 GENOBJS =\
     10 	_close.$O\
     11 	_creat.$O\
     12 	_exit.$O\
     13 	_getpid.$O\
     14 	_kill.$O\
     15 	_link.$O\
     16 	_open.$O\
     17 	_read.$O\
     18 	_sys_brk.$O\
     19 	_unlink.$O\
     20 	_waitpid.$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: $(CRT) $(OBJS)
     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