scc

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

Makefile (551B)


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