Stefan Reinauer | 24f9cb9 | 2015-03-13 22:50:22 +0100 | [diff] [blame] | 1 | all: build-i386 build-x64 build-armv7a build-aarch64 build-mips build-riscv |
Cristian Magherusan-Stanciu | 0b933d4 | 2011-05-16 01:35:03 +0000 | [diff] [blame] | 2 | |
Edward O'Callaghan | 3a72278 | 2013-11-02 03:40:39 +1100 | [diff] [blame] | 3 | build-i386: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 4 | bash ./buildgcc -G -p i386-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Edward O'Callaghan | 3a72278 | 2013-11-02 03:40:39 +1100 | [diff] [blame] | 5 | |
Stefan Reinauer | 24f9cb9 | 2015-03-13 22:50:22 +0100 | [diff] [blame] | 6 | build-x64: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 7 | bash ./buildgcc -G -p x86_64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Stefan Reinauer | 24f9cb9 | 2015-03-13 22:50:22 +0100 | [diff] [blame] | 8 | |
Edward O'Callaghan | 3a72278 | 2013-11-02 03:40:39 +1100 | [diff] [blame] | 9 | build-armv7a: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 10 | bash ./buildgcc -G -p armv7a-eabi $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Cristian Magherusan-Stanciu | 0b933d4 | 2011-05-16 01:35:03 +0000 | [diff] [blame] | 11 | |
Patrick Georgi | 3bff5d9 | 2014-11-19 18:36:37 +0100 | [diff] [blame] | 12 | build-aarch64: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 13 | bash ./buildgcc -G -p aarch64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Patrick Georgi | 3bff5d9 | 2014-11-19 18:36:37 +0100 | [diff] [blame] | 14 | |
Paul Burton | 6529c33 | 2014-05-27 15:18:42 +0100 | [diff] [blame] | 15 | build-mips: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 16 | bash ./buildgcc -G -p mipsel-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Paul Burton | 6529c33 | 2014-05-27 15:18:42 +0100 | [diff] [blame] | 17 | |
Alexander Couzens | a49c0cc | 2015-03-10 20:24:34 +0100 | [diff] [blame] | 18 | build-riscv: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 19 | bash ./buildgcc -G -p riscv-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Patrick Georgi | f0bbc95 | 2015-03-07 10:57:25 +0100 | [diff] [blame] | 20 | |
Edward O'Callaghan | 3a72278 | 2013-11-02 03:40:39 +1100 | [diff] [blame] | 21 | .PHONY: build-i386-without-gdb |
| 22 | build-i386-without-gdb: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 23 | bash ./buildgcc -p i386-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Edward O'Callaghan | 3a72278 | 2013-11-02 03:40:39 +1100 | [diff] [blame] | 24 | |
Stefan Reinauer | 24f9cb9 | 2015-03-13 22:50:22 +0100 | [diff] [blame] | 25 | .PHONY: build-x64-without-gdb |
| 26 | build-x64-without-gdb: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 27 | bash ./buildgcc -p x86_64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Stefan Reinauer | 24f9cb9 | 2015-03-13 22:50:22 +0100 | [diff] [blame] | 28 | |
Edward O'Callaghan | 3a72278 | 2013-11-02 03:40:39 +1100 | [diff] [blame] | 29 | .PHONY: build-armv7a-without-gdb |
| 30 | build-armv7a-without-gdb: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 31 | bash ./buildgcc -p armv7a-eabi $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Peter Stuge | cc5dd98 | 2011-06-09 05:04:20 +0200 | [diff] [blame] | 32 | |
Patrick Georgi | 3bff5d9 | 2014-11-19 18:36:37 +0100 | [diff] [blame] | 33 | .PHONY: build-aarch64-without-gdb |
| 34 | build-aarch64-without-gdb: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 35 | bash ./buildgcc -p aarch64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Patrick Georgi | 3bff5d9 | 2014-11-19 18:36:37 +0100 | [diff] [blame] | 36 | |
Paul Burton | 6529c33 | 2014-05-27 15:18:42 +0100 | [diff] [blame] | 37 | .PHONY: build-mips-without-gdb |
| 38 | build-mips-without-gdb: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 39 | bash ./buildgcc -p mipsel-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Paul Burton | 6529c33 | 2014-05-27 15:18:42 +0100 | [diff] [blame] | 40 | |
Patrick Georgi | f0bbc95 | 2015-03-07 10:57:25 +0100 | [diff] [blame] | 41 | .PHONY: build-riscv-without-gdb |
| 42 | build-riscv-without-gdb: |
Martin Roth | 3950966 | 2015-06-21 12:38:42 -0600 | [diff] [blame] | 43 | bash ./buildgcc -p riscv-elf $(if $(BUILDJOBS),-j $(BUILDJOBS)) |
Patrick Georgi | f0bbc95 | 2015-03-07 10:57:25 +0100 | [diff] [blame] | 44 | |
Cristian Magherusan-Stanciu | 0b933d4 | 2011-05-16 01:35:03 +0000 | [diff] [blame] | 45 | clean: |
| 46 | rm -rf xgcc |
Martin Roth | 32c9651 | 2015-06-21 13:05:03 -0600 | [diff] [blame] | 47 | rm -rf build-* |
| 48 | rm -rf binutils-* gcc-* gmp-* libelf-* mpc-* mpfr-* |
| 49 | rm -rf llvm-* clang-tools-* cfe-* compiler-rt-* |
| 50 | rm -rf acpica-* |
| 51 | rm -rf gdb-* |
Cristian Magherusan-Stanciu | 0b933d4 | 2011-05-16 01:35:03 +0000 | [diff] [blame] | 52 | |
Martin Roth | 32c9651 | 2015-06-21 13:05:03 -0600 | [diff] [blame] | 53 | distclean: clean |
| 54 | rm -rf tarballs |
| 55 | |
| 56 | .PHONY: all build clean distclean |