Home
Makefile - scc - simple c99 compiler HTML git clone git://git.simple-cc.org/scc DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- Makefile (1001B) --- 1 .POSIX: 2 3 DIRS =\ 4 src\ 5 src/libc\ 6 src/libcrt\ 7 include/bits/scc\ 8 tests\ 9 10 PROJECTDIR = . 11 include scripts/rules.mk 12 13 ROOT = $(DESTDIR)$(PREFIX) 14 NODEP = 1 15 16 all: 17 +@$(MAKE) `$(SCRIPTDIR)/config -c` config 18 +@$(MAKE) `$(SCRIPTDIR)/config -c` toolchain 19 +@$(MAKE) `$(SCRIPTDIR)/config` $(ARCH) 20 21 config: 22 +@cd include/bits/scc && $(MAKE) 23 24 install: all 25 $(SCRIPTDIR)/install $(ROOT) 26 +@$(MAKE) install-`uname -m` 27 28 uninstall: 29 $(SCRIPTDIR)/uninstall $(ROOT) 30 +@$(MAKE) uninstall-`uname -m` 31 32 toolchain: src 33 libc: src/libc 34 libcrt: src/libcrt 35 src: dirs include/bits/scc 36 src/libc: dirs 37 src/libcrt: dirs 38 39 dirs: $(SCRIPTDIR)/libc-dirs 40 xargs mkdir -p < $(SCRIPTDIR)/libc-dirs 41 touch dirs 42 43 clean: 44 xargs rm -rf < $(SCRIPTDIR)/libc-dirs 45 find . -name '*.gcno' -o -name '*.gcda' | xargs rm -f 46 rm -rf dirs coverage 47 48 distclean: clean 49 rm -f include/bits/scc/sys.h 50 rm -f include/bits/scc/config.h 51 52 include scripts/amd64.mk 53 include scripts/arm.mk 54 include scripts/arm64.mk 55 include scripts/i386.mk 56 include scripts/ppc.mk