scc

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

Makefile (409B)


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