scc

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

Makefile (796B)


      1 .POSIX:
      2 
      3 DIRS  =\
      4 	src\
      5 	src/libc\
      6 	include/scc/scc\
      7 	tests\
      8 
      9 PROJECTDIR = .
     10 include $(PROJECTDIR)/scripts/rules.mk
     11 
     12 PREFIX= /usr/local
     13 
     14 all:
     15 	+@$(MAKE) `$(SCRIPTDIR)/config` toolchain
     16 	+@$(MAKE) `$(SCRIPTDIR)/config` CONF=amd64-linux libc
     17 	+@$(MAKE) `$(SCRIPTDIR)/config` CONF=amd64-openbsd libc
     18 	+@$(MAKE) `$(SCRIPTDIR)/config` CONF=amd64-netbsd libc
     19 	+@$(MAKE) `$(SCRIPTDIR)/config` CONF=amd64-dragonfly libc
     20 
     21 toolchain: dirs src
     22 
     23 libc: dirs src/libc
     24 
     25 src: include/scc/scc
     26 
     27 dirs: $(SCRIPTDIR)/libc-proto
     28 	xargs mkdir -p < $(SCRIPTDIR)/libc-proto
     29 	touch dirs
     30 
     31 dep:
     32 	$(FORALL)
     33 
     34 install: all
     35 	$(SCRIPTDIR)/install $(PREFIX)
     36 
     37 distclean: clean
     38 	$(MAKE) $(ENVIRON)
     39 	$(FORALL)
     40 	rm -f $(ENVIRON)
     41 
     42 clean: $(ENVIRON)
     43 	$(FORALL)
     44 	xargs rm -rf < $(SCRIPTDIR)/libc-proto
     45 	rm -f dirs $(ENVIRON)
     46 
     47 tests: all