Chris Lattner | 8ca0eeb | 2003-08-21 22:29:52 +0000 | [diff] [blame] | 1 | # |
John Criswell | a37fefd | 2003-09-06 15:03:24 +0000 | [diff] [blame^] | 2 | # Configure the location of the LLVM object root. We know it is two |
| 3 | # directories up. The source tree location we do not know; let the LLVM |
| 4 | # Makefiles find it for us. |
Chris Lattner | 8ca0eeb | 2003-08-21 22:29:52 +0000 | [diff] [blame] | 5 | # |
John Criswell | a37fefd | 2003-09-06 15:03:24 +0000 | [diff] [blame^] | 6 | LLVM_OBJ_ROOT=$(LEVEL)/../.. |
Chris Lattner | 8ca0eeb | 2003-08-21 22:29:52 +0000 | [diff] [blame] | 7 | |
| 8 | # |
John Criswell | a37fefd | 2003-09-06 15:03:24 +0000 | [diff] [blame^] | 9 | # Grab the LLVM configuration file. |
Chris Lattner | 8ca0eeb | 2003-08-21 22:29:52 +0000 | [diff] [blame] | 10 | # |
John Criswell | a37fefd | 2003-09-06 15:03:24 +0000 | [diff] [blame^] | 11 | include $(LEVEL)/../../Makefile.config |
| 12 | |
| 13 | # |
| 14 | # Reconfigure the source directories |
| 15 | # |
| 16 | BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker |
| 17 | BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) |
| 18 | |
| 19 | # |
| 20 | # Include LLVM's build rules. |
| 21 | # |
| 22 | include $(LLVM_SRC_ROOT)/Makefile.rules |
Chris Lattner | 8ca0eeb | 2003-08-21 22:29:52 +0000 | [diff] [blame] | 23 | |