scc

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

Makefile (336B)


      1 .POSIX:
      2 
      3 DIRS =\
      4 	arch\
      5 	assert\
      6 	ctype\
      7 	locale\
      8 	stdio\
      9 	stdlib\
     10 	string\
     11 	time\
     12 
     13 PROJECTDIR =../..
     14 include $(PROJECTDIR)/scripts/rules.mk
     15 include rules.mk
     16 
     17 
     18 all: $(LIBC)
     19 
     20 $(LIBC): $(DIRS)
     21 	$(AR) $(PROJ_ARFLAGS) $@ `cat $(LIBCLST)`
     22 	$(RL) $(PROJ_RLFLAGS) $@
     23 
     24 rm-lst: FORCE
     25 	rm -f $(LIBCLST)
     26 
     27 dep:
     28 	$(FORALL)
     29 
     30 clean: rm-lst
     31 	$(FORALL)