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