scc

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

Makefile (575B)


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