1 1.1.1.3 mrg # Copyright (C) 2016-2022 Free Software Foundation, Inc. 2 1.1 mrg # 3 1.1 mrg # This file is free software; you can redistribute it and/or modify it under 4 1.1 mrg # the terms of the GNU General Public License as published by the Free 5 1.1 mrg # Software Foundation; either version 3 of the License, or (at your option) 6 1.1 mrg # any later version. 7 1.1 mrg # 8 1.1 mrg # This file is distributed in the hope that it will be useful, but WITHOUT 9 1.1 mrg # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10 1.1 mrg # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 11 1.1 mrg # for more details. 12 1.1 mrg # 13 1.1 mrg # You should have received a copy of the GNU General Public License 14 1.1 mrg # along with GCC; see the file COPYING3. If not see 15 1.1 mrg # <http://www.gnu.org/licenses/>. 16 1.1 mrg 17 1.1 mrg GTM_H += $(HASH_TABLE_H) 18 1.1 mrg 19 1.1.1.3 mrg driver-gcn.o: $(srcdir)/config/gcn/driver-gcn.cc 20 1.1 mrg $(COMPILE) $< 21 1.1 mrg $(POSTCOMPILE) 22 1.1 mrg 23 1.1 mrg CFLAGS-mkoffload.o += $(DRIVER_DEFINES) \ 24 1.1 mrg -DGCC_INSTALL_NAME=\"$(GCC_INSTALL_NAME)\" 25 1.1.1.3 mrg mkoffload.o: $(srcdir)/config/gcn/mkoffload.cc 26 1.1 mrg $(COMPILE) $< 27 1.1 mrg $(POSTCOMPILE) 28 1.1 mrg ALL_HOST_OBJS += mkoffload.o 29 1.1 mrg 30 1.1 mrg mkoffload$(exeext): mkoffload.o collect-utils.o libcommon-target.a \ 31 1.1 mrg $(LIBIBERTY) $(LIBDEPS) 32 1.1 mrg +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \ 33 1.1 mrg mkoffload.o collect-utils.o libcommon-target.a $(LIBIBERTY) $(LIBS) 34 1.1 mrg 35 1.1 mrg CFLAGS-gcn-run.o += -DVERSION_STRING=$(PKGVERSION_s) 36 1.1 mrg COMPILE-gcn-run.o = $(filter-out -fno-rtti,$(COMPILE)) 37 1.1.1.3 mrg gcn-run.o: $(srcdir)/config/gcn/gcn-run.cc 38 1.1 mrg $(COMPILE-gcn-run.o) -x c -std=gnu11 -Wno-error=pedantic $< 39 1.1 mrg $(POSTCOMPILE) 40 1.1 mrg ALL_HOST_OBJS += gcn-run.o 41 1.1 mrg 42 1.1 mrg gcn-run$(exeext): gcn-run.o 43 1.1 mrg +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $< -ldl 44 1.1 mrg 45 1.1.1.3 mrg MULTILIB_OPTIONS = march=gfx900/march=gfx906/march=gfx908 46 1.1.1.3 mrg MULTILIB_DIRNAMES = gfx900 gfx906 gfx908 47 1.1 mrg 48 1.1.1.3 mrg gcn-tree.o: $(srcdir)/config/gcn/gcn-tree.cc 49 1.1 mrg $(COMPILE) $< 50 1.1 mrg $(POSTCOMPILE) 51 1.1 mrg ALL_HOST_OBJS += gcn-tree.o 52