scc

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

Makefile (906B)


      1 .POSIX:
      2 
      3 DIRS  =\
      4 	src\
      5 	src/libc\
      6 	src/libcrt\
      7 	include/scc/scc\
      8 	tests\
      9 
     10 PROJECTDIR = .
     11 include scripts/rules.mk
     12 
     13 ROOT = $(DESTDIR)$(PREFIX)
     14 NODEP = 1
     15 
     16 all: config
     17 	+@$(MAKE) `$(SCRIPTDIR)/config -c` toolchain
     18 	+@$(MAKE) `$(SCRIPTDIR)/config` `uname -m`
     19 
     20 config:
     21 	cd include/scc/scc && $(MAKE) $@
     22 
     23 install: all
     24 	$(SCRIPTDIR)/install $(ROOT)
     25 	+@$(MAKE) install-`uname -m`
     26 
     27 uninstall:
     28 	$(SCRIPTDIR)/uninstall $(ROOT)
     29 	+@$(MAKE) uninstall-`uname -m`
     30 
     31 toolchain: src
     32 libc: src/libc
     33 libcrt: src/libcrt
     34 src: dirs include/scc/scc
     35 src/libc: dirs
     36 src/libcrt: dirs
     37 
     38 dirs: $(SCRIPTDIR)/libc-dirs
     39 	xargs mkdir -p < $(SCRIPTDIR)/libc-dirs
     40 	touch dirs
     41 
     42 clean:
     43 	xargs rm -rf < $(SCRIPTDIR)/libc-dirs
     44 	rm -f dirs
     45 
     46 distclean: clean
     47 	rm -f include/scc/scc/sysld.h
     48 	rm -f include/scc/scc/sysincludes.h
     49 
     50 include scripts/amd64.mk
     51 include scripts/arm.mk
     52 include scripts/arm64.mk
     53 include scripts/i386.mk
     54 include scripts/ppc.mk