scc

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

Makefile (705B)


      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         _sigaction.o \
     13         _read.o \
     14         _write.o \
     15         _brk.o \
     16         _getheap.o \
     17         _cerrno.o \
     18         _sigaction.o \
     19         _tzone.o \
     20         getenv.o \
     21         raise.o \
     22         signal.o \
     23         time.o \
     24         _sys_errlist.o \
     25         crt.o \
     26 
     27 all: syscall
     28 	$(MAKE) objs
     29 
     30 objs: $(OBJS)
     31 
     32 crt.o: ../crt-posix.s
     33 
     34 syscall: syscall.lst
     35 	gensys.sh syscall.lst
     36 	touch syscall
     37 
     38 clean:
     39 	rm -f `awk '/[0-9]*	_/ {print $$2".s"}' syscall.lst`
     40 	rm -f syscall _sys_errlist.c