scc

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

Makefile (658B)


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