2009-03-03 11:02:48 +00:00
|
|
|
##===- llvmc/example/Skeleton/driver/Makefile --------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open
|
|
|
|
# Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
LEVEL = $(LLVMC_BASE_LEVEL)/..
|
2009-06-23 20:47:24 +00:00
|
|
|
include $(LEVEL)/Makefile.config
|
2009-03-03 11:02:48 +00:00
|
|
|
|
|
|
|
TOOLNAME = $(LLVMC_BASED_DRIVER_NAME)
|
2009-06-23 20:47:24 +00:00
|
|
|
LLVMLIBS = CompilerDriver.a
|
|
|
|
LINK_COMPONENTS = support system
|
|
|
|
REQUIRES_EH := 1
|
2009-03-03 11:02:48 +00:00
|
|
|
|
2009-06-23 20:47:24 +00:00
|
|
|
# Preprocessor magic that generates references to static variables in built-in
|
|
|
|
# plugins.
|
|
|
|
# TODO: Move this to Makefile.rules? (also used by examples/{Skeleton, mcc16})
|
2009-03-03 11:02:48 +00:00
|
|
|
ifneq ($(LLVMC_BUILTIN_PLUGINS),)
|
2009-06-23 20:47:24 +00:00
|
|
|
|
|
|
|
USEDLIBS += $(patsubst %,plugin_llvmc_%.a,$(LLVMC_BUILTIN_PLUGINS))
|
|
|
|
|
|
|
|
LLVMC_BUILTIN_PLUGIN_1 = $(word 1, $(LLVMC_BUILTIN_PLUGINS))
|
|
|
|
LLVMC_BUILTIN_PLUGIN_2 = $(word 2, $(LLVMC_BUILTIN_PLUGINS))
|
|
|
|
LLVMC_BUILTIN_PLUGIN_3 = $(word 3, $(LLVMC_BUILTIN_PLUGINS))
|
|
|
|
LLVMC_BUILTIN_PLUGIN_4 = $(word 4, $(LLVMC_BUILTIN_PLUGINS))
|
|
|
|
LLVMC_BUILTIN_PLUGIN_5 = $(word 5, $(LLVMC_BUILTIN_PLUGINS))
|
|
|
|
|
|
|
|
ifneq ($(LLVMC_BUILTIN_PLUGIN_1),)
|
|
|
|
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_1=$(LLVMC_BUILTIN_PLUGIN_1)
|
2009-03-03 11:02:48 +00:00
|
|
|
endif
|
|
|
|
|
2009-06-23 20:47:24 +00:00
|
|
|
ifneq ($(LLVMC_BUILTIN_PLUGIN_2),)
|
|
|
|
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_2=$(LLVMC_BUILTIN_PLUGIN_2)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(LLVMC_BUILTIN_PLUGIN_3),)
|
|
|
|
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_3=$(LLVMC_BUILTIN_PLUGIN_3)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(LLVMC_BUILTIN_PLUGIN_4),)
|
|
|
|
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_4=$(LLVMC_BUILTIN_PLUGIN_4)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(LLVMC_BUILTIN_PLUGIN_5),)
|
|
|
|
CPP.Flags += -DLLVMC_BUILTIN_PLUGIN_5=$(LLVMC_BUILTIN_PLUGIN_5)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
2009-03-03 11:02:48 +00:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|