scc

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

Makefile (654B)


      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         __sigaction.o\
     15         _getheap.o \
     16         _tzone.o \
     17         getenv.o \
     18         raise.o \
     19         signal.o \
     20         time.o \
     21         _sys_errlist.o \
     22         crt.o \
     23 
     24 all: syscall
     25 	$(MAKE) objs
     26 
     27 objs: $(OBJS)
     28 
     29 crt.o: ../crt-posix.s
     30 
     31 syscall: syscall.lst
     32 	gensys.sh syscall.lst
     33 	touch syscall
     34 
     35 clean:
     36 	rm -f `awk '$$2 ~ /^__/ {print $$2".s"}' syscall.lst`
     37 	rm -f syscall _sys_errlist.c