scc

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

Makefile (863B)


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