aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ModuleMaker/Makefile.common.in
blob: 1f1cfc3c2e06185bc5d6783898b0eb595c37c450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Configure the location of the LLVM object root.  We know it is two
# directories up.  The source tree location we do not know; let the LLVM
# Makefiles find it for us.
#
LLVM_OBJ_ROOT=$(LEVEL)/../../..

#
# Grab the LLVM configuration file.
#
include $(LEVEL)/../../../Makefile.config

#
# Reconfigure the source directories
#
BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/SmallExamples/ModuleMaker
BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))

#
# Include LLVM's build rules.
#
include $(LLVM_SRC_ROOT)/Makefile.rules