scc

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

Makefile (504B)


      1 .POSIX:
      2 PROJECTDIR =../../../../..
      3 include $(PROJECTDIR)/scripts/rules.mk
      4 include ../../../rules.mk
      5 
      6 GENOBJS =\
      7 	_Exit.$O\
      8 	_read.$O\
      9 	_write.$O\
     10 	_open.$O\
     11 	_close.$O\
     12 	_waitpid.$O\
     13 	_create.$O\
     14 	_link.$O\
     15 	_unlink.$O\
     16 	_getpid.$O\
     17 	_brk.$O\
     18 
     19 GENSRC = $(GENOBJS:.$O=.s)
     20 
     21 OBJS  = \
     22 	$(GENOBJS)\
     23 	_cerrno.$O\
     24 	_getheap.$O\
     25 
     26 # Rules
     27 
     28 all: $(LIBC) $(CRT)
     29 
     30 $(LIBC): $(OBJS)
     31 	$(MKLST)
     32 
     33 crt.$O: ../crt-posix.s
     34 
     35 $(GENSRC): syscall.lst
     36 	gensys.sh $(@:.s=)
     37 
     38 dep: inc-dep
     39 
     40 clean:
     41 	rm -f $(GENSRC)
     42 
     43 include deps.mk