blob: ee4d9b30ff29cd60e0f09305ac9ceb08479bfc6f [file] [log] [blame]
# Copyright (C) 2016-2021 Free Software Foundation, Inc.
# This file is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
# This file is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3. If not see
# <>.
driver-gcn.o: $(srcdir)/config/gcn/driver-gcn.c
CFLAGS-mkoffload.o += $(DRIVER_DEFINES) \
mkoffload.o: $(srcdir)/config/gcn/mkoffload.c
ALL_HOST_OBJS += mkoffload.o
mkoffload$(exeext): mkoffload.o collect-utils.o libcommon-target.a \
mkoffload.o collect-utils.o libcommon-target.a $(LIBIBERTY) $(LIBS)
COMPILE-gcn-run.o = $(filter-out -fno-rtti,$(COMPILE))
gcn-run.o: $(srcdir)/config/gcn/gcn-run.c
$(COMPILE-gcn-run.o) -x c -std=gnu11 -Wno-error=pedantic $<
ALL_HOST_OBJS += gcn-run.o
gcn-run$(exeext): gcn-run.o
+$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $< -ldl
MULTILIB_OPTIONS = march=gfx900/march=gfx906/march=gfx908
MULTILIB_DIRNAMES = gfx900 gfx906 gfx908
gcn-tree.o: $(srcdir)/config/gcn/gcn-tree.c
ALL_HOST_OBJS += gcn-tree.o