scc

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

Makefile (332B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../..
      4 DIRS =\
      5 	assert\
      6 	ctype\
      7 	locale\
      8 	stdio\
      9 	stdlib\
     10 	string\
     11 	time\
     12 	arch\
     13 
     14 include $(PROJECTDIR)/scripts/rules.mk
     15 include rules.mk
     16 include objs/$(ARCH)-$(SYS).mk
     17 
     18 NODEP = 1
     19 TARGET = $(LIBC)
     20 
     21 all: $(DIRS)
     22 	$(MAKE) $(LIBC)
     23 
     24 $(LIBC): $(OBJS)
     25 	$(AR) $(PROJ_ARFLAGS) $(LIBC) $?
     26 	$(RL) $(PROJ_RLFLAGS) $(LIBC)