16b90bd4bSEmese RevfyGCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin) 26b90bd4bSEmese Revfy 36b90bd4bSEmese Revfyifeq ($(PLUGINCC),$(HOSTCC)) 46b90bd4bSEmese Revfy HOSTLIBS := hostlibs 56b90bd4bSEmese Revfy HOST_EXTRACFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu99 -ggdb 66b90bd4bSEmese Revfy export HOST_EXTRACFLAGS 76b90bd4bSEmese Revfyelse 86b90bd4bSEmese Revfy HOSTLIBS := hostcxxlibs 96b90bd4bSEmese Revfy HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 -fno-rtti 106b90bd4bSEmese Revfy HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb 116b90bd4bSEmese Revfy HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable 126b90bd4bSEmese Revfy export HOST_EXTRACXXFLAGS 136b90bd4bSEmese Revfyendif 146b90bd4bSEmese Revfy 156b90bd4bSEmese Revfyexport GCCPLUGINS_DIR HOSTLIBS 166b90bd4bSEmese Revfy 17*543c37cbSEmese Revfyifneq ($(CFLAGS_KCOV), $(SANCOV_PLUGIN)) 18*543c37cbSEmese Revfy GCC_PLUGIN := $(filter-out $(SANCOV_PLUGIN), $(GCC_PLUGIN)) 19*543c37cbSEmese Revfyendif 20*543c37cbSEmese Revfy 216b90bd4bSEmese Revfy$(HOSTLIBS)-y := $(GCC_PLUGIN) 226b90bd4bSEmese Revfyalways := $($(HOSTLIBS)-y) 236b90bd4bSEmese Revfy 240dae776cSEmese Revfycyc_complexity_plugin-objs := cyc_complexity_plugin.o 25*543c37cbSEmese Revfysancov_plugin-objs := sancov_plugin.o 26*543c37cbSEmese Revfy 276b90bd4bSEmese Revfyclean-files += *.so 28