scc

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

Makefile (551B)


      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 	_openat.$O\
     17 	_read.$O\
     18 	__sigaction.$O\
     19 	_sys_brk.$O\
     20 	_write.$O\
     21 	_wait4.$O\
     22 
     23 GENSRC = $(GENOBJS:.$O=.s)
     24 
     25 OBJS =\
     26 	$(GENOBJS)\
     27 	_cerrno.$O\
     28 	_sys_errlist.$O\
     29 
     30 all: $(OBJS) $(CRT)
     31 
     32 $(CRT): ../crt-posix.s
     33 
     34 $(GENOBJS): syscall.lst
     35 	./gensys.sh $(@:.$O=)
     36 	$(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s)
     37 
     38 clean:
     39 	rm -f $(GENOBJS:.$O=.s) _sys_errlist.c