2015-03-13 22:50:22 +01:00
|
|
|
all: build-i386 build-x64 build-armv7a build-aarch64 build-mips build-riscv
|
2011-05-16 03:35:03 +02:00
|
|
|
|
2013-11-01 17:40:39 +01:00
|
|
|
build-i386:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -G -p i386-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2013-11-01 17:40:39 +01:00
|
|
|
|
2015-03-13 22:50:22 +01:00
|
|
|
build-x64:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -G -p x86_64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2015-03-13 22:50:22 +01:00
|
|
|
|
2013-11-01 17:40:39 +01:00
|
|
|
build-armv7a:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -G -p armv7a-eabi $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2011-05-16 03:35:03 +02:00
|
|
|
|
2014-11-19 18:36:37 +01:00
|
|
|
build-aarch64:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -G -p aarch64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2014-11-19 18:36:37 +01:00
|
|
|
|
2014-05-27 16:18:42 +02:00
|
|
|
build-mips:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -G -p mipsel-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2014-05-27 16:18:42 +02:00
|
|
|
|
2015-03-10 20:24:34 +01:00
|
|
|
build-riscv:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -G -p riscv-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2015-03-07 10:57:25 +01:00
|
|
|
|
2013-11-01 17:40:39 +01:00
|
|
|
.PHONY: build-i386-without-gdb
|
|
|
|
build-i386-without-gdb:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -p i386-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2013-11-01 17:40:39 +01:00
|
|
|
|
2015-03-13 22:50:22 +01:00
|
|
|
.PHONY: build-x64-without-gdb
|
|
|
|
build-x64-without-gdb:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -p x86_64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2015-03-13 22:50:22 +01:00
|
|
|
|
2013-11-01 17:40:39 +01:00
|
|
|
.PHONY: build-armv7a-without-gdb
|
|
|
|
build-armv7a-without-gdb:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -p armv7a-eabi $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2011-06-09 05:04:20 +02:00
|
|
|
|
2014-11-19 18:36:37 +01:00
|
|
|
.PHONY: build-aarch64-without-gdb
|
|
|
|
build-aarch64-without-gdb:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -p aarch64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2014-11-19 18:36:37 +01:00
|
|
|
|
2014-05-27 16:18:42 +02:00
|
|
|
.PHONY: build-mips-without-gdb
|
|
|
|
build-mips-without-gdb:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -p mipsel-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2014-05-27 16:18:42 +02:00
|
|
|
|
2015-03-07 10:57:25 +01:00
|
|
|
.PHONY: build-riscv-without-gdb
|
|
|
|
build-riscv-without-gdb:
|
2015-06-21 20:38:42 +02:00
|
|
|
bash ./buildgcc -p riscv-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
|
2015-03-07 10:57:25 +01:00
|
|
|
|
2011-05-16 03:35:03 +02:00
|
|
|
clean:
|
|
|
|
rm -rf xgcc
|
2015-06-21 21:05:03 +02:00
|
|
|
rm -rf build-*
|
|
|
|
rm -rf binutils-* gcc-* gmp-* libelf-* mpc-* mpfr-*
|
|
|
|
rm -rf llvm-* clang-tools-* cfe-* compiler-rt-*
|
|
|
|
rm -rf acpica-*
|
|
|
|
rm -rf gdb-*
|
2011-05-16 03:35:03 +02:00
|
|
|
|
2015-06-21 21:05:03 +02:00
|
|
|
distclean: clean
|
|
|
|
rm -rf tarballs
|
|
|
|
|
|
|
|
.PHONY: all build clean distclean
|