scc

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

Makefile (561B)


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