Makefile (969B)
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: config 17 +@$(MAKE) `$(SCRIPTDIR)/config -c` toolchain 18 +@$(MAKE) `$(SCRIPTDIR)/config` `uname -m` 19 20 config: 21 cd include/bits/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/bits/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 find . -name '*.gcno' -o -name '*.gcda' | xargs rm -f 45 rm -rf dirs coverage 46 47 distclean: clean 48 rm -f include/bits/scc/sys.h 49 rm -f include/bits/scc/config.h 50 51 include scripts/amd64.mk 52 include scripts/arm.mk 53 include scripts/arm64.mk 54 include scripts/i386.mk 55 include scripts/ppc.mk