scc

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

Makefile (422B)


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