[llvm-commits] [dragonegg] r101061 - /dragonegg/trunk/Makefile
Duncan Sands
baldrick at free.fr
Mon Apr 12 13:06:53 PDT 2010
Author: baldrick
Date: Mon Apr 12 15:06:53 2010
New Revision: 101061
URL: http://llvm.org/viewvc/llvm-project?rev=101061&view=rev
Log:
Rename some variables, and removing the doubled-up use of
-o $@ $(LINKER) in the final link line, which I must have
introduced by accident in one of the preceding commits.
Modified:
dragonegg/trunk/Makefile
Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=101061&r1=101060&r2=101061&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Mon Apr 12 15:06:53 2010
@@ -44,14 +44,14 @@
ALL_OBJECTS=$(PLUGIN_OBJECTS) $(TARGET_OBJECT) $(TARGET_UTIL_OBJECTS)
-PREPROCESSOR+=$(CPPFLAGS) $(shell $(LLVM_CONFIG) --cppflags) \
- -MD -MP \
- -DIN_GCC -DREVISION=\"$(REVISION)\" \
- -DTARGET_NAME=\"$(TARGET_TRIPLE)\" \
- -I$(SRC_DIR) -I$(GCC_PLUGIN_DIR)/include
+CPP_OPTIONS+=$(CPPFLAGS) $(shell $(LLVM_CONFIG) --cppflags) \
+ -MD -MP \
+ -DIN_GCC -DREVISION=\"$(REVISION)\" \
+ -DTARGET_NAME=\"$(TARGET_TRIPLE)\" \
+ -I$(SRC_DIR) -I$(GCC_PLUGIN_DIR)/include
-LINKER+=$(LDFLAGS) $(shell $(LLVM_CONFIG) --ldflags) \
- $(shell $(LLVM_CONFIG) --libs analysis core ipo scalaropts target)
+LD_OPTIONS+=$(LDFLAGS) $(shell $(LLVM_CONFIG) --ldflags) \
+ $(shell $(LLVM_CONFIG) --libs analysis core ipo scalaropts target)
# NOTE: The following flags can only be used after TARGET_UTIL has been built.
TARGET_HEADERS+=-I$(SRC_DIR)/$(shell $(TARGET_UTIL) -p) \
@@ -62,29 +62,29 @@
$(TARGET_UTIL_OBJECTS): %.o : $(SRC_DIR)/utils/%.cpp
@echo Compiling utils/$*.cpp
- $(QUIET)$(CXX) -c $(PREPROCESSOR) $(CXXFLAGS) $<
+ $(QUIET)$(CXX) -c $(CPP_OPTIONS) $(CXXFLAGS) $<
$(TARGET_UTIL): $(TARGET_UTIL_OBJECTS)
@echo Linking $@
- $(QUIET)$(CXX) -o $@ $^ $(LINKER)
+ $(QUIET)$(CXX) -o $@ $^ $(LD_OPTIONS)
%.o : $(SRC_DIR)/%.c $(TARGET_UTIL)
@echo Compiling $*.c
- $(QUIET)$(CC) -c $(PREPROCESSOR) $(TARGET_HEADERS) $(CFLAGS) $<
+ $(QUIET)$(CC) -c $(CPP_OPTIONS) $(TARGET_HEADERS) $(CFLAGS) $<
%.o : $(SRC_DIR)/%.cpp $(TARGET_UTIL)
@echo Compiling $*.cpp
- $(QUIET)$(CXX) -c $(PREPROCESSOR) $(TARGET_HEADERS) $(CXXFLAGS) $<
+ $(QUIET)$(CXX) -c $(CPP_OPTIONS) $(TARGET_HEADERS) $(CXXFLAGS) $<
$(TARGET_OBJECT): $(TARGET_UTIL)
@echo Compiling $(shell $(TARGET_UTIL) -p)/llvm-target.cpp
- $(QUIET)$(CXX) -o $@ -c $(PREPROCESSOR) $(TARGET_HEADERS) $(CXXFLAGS) \
+ $(QUIET)$(CXX) -o $@ -c $(CPP_OPTIONS) $(TARGET_HEADERS) $(CXXFLAGS) \
$(TARGET_SOURCE)
$(PLUGIN): $(PLUGIN_OBJECTS) $(TARGET_OBJECT) $(TARGET_UTIL)
@echo Linking $@
- $(QUIET)$(CXX) $(LOADABLE_MODULE_OPTIONS) $(CXXFLAGS) -o $@ $(LINKER) \
- $(PLUGIN_OBJECTS) $(TARGET_OBJECT) -o $@ $(LINKER) \
+ $(QUIET)$(CXX) $(LOADABLE_MODULE_OPTIONS) $(LD_OPTIONS) \
+ $(CXXFLAGS) -o $@ $(PLUGIN_OBJECTS) $(TARGET_OBJECT) \
$(shell $(LLVM_CONFIG) --libs $(shell $(TARGET_UTIL) -p))
clean::
More information about the llvm-commits
mailing list