scc

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

Makefile (455B)


      1 .POSIX:
      2 PROJECTDIR =../../../../..
      3 include $(PROJECTDIR)/scripts/rules.mk
      4 include ../../../rules.mk
      5 
      6 OBJS 	=\
      7 	_Exit.o\
      8 	_close.o\
      9 	_open.o\
     10 	_read.o\
     11 	_write.o\
     12 	_lseek.o\
     13 	_brk.o\
     14 	_sigaction.o\
     15 	_getpid.o\
     16 	_Exit.o\
     17 	_kill.o\
     18 	crt.o\
     19 
     20 all: syscall
     21 	$(MAKE) objs
     22 
     23 objs: $(OBJS)
     24 
     25 crt.o:	../crt-posix.s
     26 
     27 syscall: syscall.lst
     28 	gensys.sh syscall.lst
     29 	touch syscall
     30 
     31 clean:
     32 	rm -f `awk '/[0-9]*	_/ {print $$2".s"}' syscall.lst`
     33 	rm -f syscall _sys_errlist.c