# Compilation options...
#---------------------------------------------------------
-# Special tools used while building
-RunBurg := $(BURG) $(BURG_OPTS)
+# Special tools used while building the LLVM tree. Burg is built as part of the
+# utils directory.
+#
+BURG := $(LEVEL)/utils/Burg/burg
+RunBurg := $(BURG) $(BURG_OPTS)
+
# Enable this for profiling support with 'gprof'
ifdef ENABLE_PROFILING
Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l)
Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source)))))
-ObjectsO = $(addprefix $(BUILD_ROOT)/Release/,$(Objs)))
-ObjectsG = $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
+ObjectsO := $(addprefix $(BUILD_ROOT)/Release/,$(Objs)))
+ObjectsG := $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
#---------------------------------------------------------
# Compilation options...
#---------------------------------------------------------
-# Special tools used while building
-RunBurg := $(BURG) $(BURG_OPTS)
+# Special tools used while building the LLVM tree. Burg is built as part of the
+# utils directory.
+#
+BURG := $(LEVEL)/utils/Burg/burg
+RunBurg := $(BURG) $(BURG_OPTS)
+
# Enable this for profiling support with 'gprof'
ifdef ENABLE_PROFILING
Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l)
Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source)))))
-ObjectsO = $(addprefix $(BUILD_ROOT)/Release/,$(Objs)))
-ObjectsG = $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
+ObjectsO := $(addprefix $(BUILD_ROOT)/Release/,$(Objs)))
+ObjectsG := $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
#---------------------------------------------------------