scc

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

Makefile (531B)


      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 	_fork.$O\
     12 	_getpid.$O\
     13 	_gettimeofday.$O\
     14 	_kill.$O\
     15 	_lseek.$O\
     16 	_open.$O\
     17 	_read.$O\
     18 	_setcontext.$O\
     19 	_sigaction2.$O\
     20 	_write.$O\
     21 	_wait4.$O\
     22 
     23 OBJS =\
     24 	$(GENOBJS)\
     25 	_sys_errlist.$O\
     26 
     27 all: $(OBJS) $(CRT)
     28 
     29 crt.$O: ../crt-posix.s ../netbsd/crt.s
     30 
     31 $(GENOBJS): syscall.lst
     32 	./gensys.sh $(@:.$O=)
     33 	$(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s)
     34 
     35 clean:
     36 	rm -f $(GENOBJS:.$O=.s) _sys_errlist.c