llvm-6502/projects/sample/Makefile.common
John Criswell a37fefd064 Checkin of autoconf-style object root.
Modified Makefiles to use the new Makefile setup in LLVM.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8380 91177308-0d34-0410-b5e6-96231b3b80d8
2003-09-06 15:03:24 +00:00

24 lines
549 B
Makefile

#
# 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/sample
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