blob: ae9177c32b463340dbb2acb787753fcd0a07f0e0 [file] [log] [blame]
Stefan Reinauer24f9cb92015-03-13 22:50:22 +01001all: build-i386 build-x64 build-armv7a build-aarch64 build-mips build-riscv
Cristian Magherusan-Stanciu0b933d42011-05-16 01:35:03 +00002
Edward O'Callaghan3a722782013-11-02 03:40:39 +11003build-i386:
Martin Roth39509662015-06-21 12:38:42 -06004 bash ./buildgcc -G -p i386-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Edward O'Callaghan3a722782013-11-02 03:40:39 +11005
Stefan Reinauer24f9cb92015-03-13 22:50:22 +01006build-x64:
Martin Roth39509662015-06-21 12:38:42 -06007 bash ./buildgcc -G -p x86_64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Stefan Reinauer24f9cb92015-03-13 22:50:22 +01008
Edward O'Callaghan3a722782013-11-02 03:40:39 +11009build-armv7a:
Martin Roth39509662015-06-21 12:38:42 -060010 bash ./buildgcc -G -p armv7a-eabi $(if $(BUILDJOBS),-j $(BUILDJOBS))
Cristian Magherusan-Stanciu0b933d42011-05-16 01:35:03 +000011
Patrick Georgi3bff5d92014-11-19 18:36:37 +010012build-aarch64:
Martin Roth39509662015-06-21 12:38:42 -060013 bash ./buildgcc -G -p aarch64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Patrick Georgi3bff5d92014-11-19 18:36:37 +010014
Paul Burton6529c332014-05-27 15:18:42 +010015build-mips:
Martin Roth39509662015-06-21 12:38:42 -060016 bash ./buildgcc -G -p mipsel-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Paul Burton6529c332014-05-27 15:18:42 +010017
Alexander Couzensa49c0cc2015-03-10 20:24:34 +010018build-riscv:
Martin Roth39509662015-06-21 12:38:42 -060019 bash ./buildgcc -G -p riscv-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Patrick Georgif0bbc952015-03-07 10:57:25 +010020
Edward O'Callaghan3a722782013-11-02 03:40:39 +110021.PHONY: build-i386-without-gdb
22build-i386-without-gdb:
Martin Roth39509662015-06-21 12:38:42 -060023 bash ./buildgcc -p i386-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Edward O'Callaghan3a722782013-11-02 03:40:39 +110024
Stefan Reinauer24f9cb92015-03-13 22:50:22 +010025.PHONY: build-x64-without-gdb
26build-x64-without-gdb:
Martin Roth39509662015-06-21 12:38:42 -060027 bash ./buildgcc -p x86_64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Stefan Reinauer24f9cb92015-03-13 22:50:22 +010028
Edward O'Callaghan3a722782013-11-02 03:40:39 +110029.PHONY: build-armv7a-without-gdb
30build-armv7a-without-gdb:
Martin Roth39509662015-06-21 12:38:42 -060031 bash ./buildgcc -p armv7a-eabi $(if $(BUILDJOBS),-j $(BUILDJOBS))
Peter Stugecc5dd982011-06-09 05:04:20 +020032
Patrick Georgi3bff5d92014-11-19 18:36:37 +010033.PHONY: build-aarch64-without-gdb
34build-aarch64-without-gdb:
Martin Roth39509662015-06-21 12:38:42 -060035 bash ./buildgcc -p aarch64-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Patrick Georgi3bff5d92014-11-19 18:36:37 +010036
Paul Burton6529c332014-05-27 15:18:42 +010037.PHONY: build-mips-without-gdb
38build-mips-without-gdb:
Martin Roth39509662015-06-21 12:38:42 -060039 bash ./buildgcc -p mipsel-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Paul Burton6529c332014-05-27 15:18:42 +010040
Patrick Georgif0bbc952015-03-07 10:57:25 +010041.PHONY: build-riscv-without-gdb
42build-riscv-without-gdb:
Martin Roth39509662015-06-21 12:38:42 -060043 bash ./buildgcc -p riscv-elf $(if $(BUILDJOBS),-j $(BUILDJOBS))
Patrick Georgif0bbc952015-03-07 10:57:25 +010044
Cristian Magherusan-Stanciu0b933d42011-05-16 01:35:03 +000045clean:
46 rm -rf xgcc
Martin Roth32c96512015-06-21 13:05:03 -060047 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-Stanciu0b933d42011-05-16 01:35:03 +000052
Martin Roth32c96512015-06-21 13:05:03 -060053distclean: clean
54 rm -rf tarballs
55
56.PHONY: all build clean distclean