[llvm-commits] [dragonegg] r100960 - /dragonegg/trunk/Makefile
Duncan Sands
baldrick at free.fr
Sun Apr 11 01:55:22 PDT 2010
Author: baldrick
Date: Sun Apr 11 03:55:22 2010
New Revision: 100960
URL: http://llvm.org/viewvc/llvm-project?rev=100960&view=rev
Log:
Get rid of -Werror, which just causes problems when people try to build
on unusual systems (i.e. not identical to mine). Instead, make the build
much less noisy by default, so any warnings stand out clearly.
Modified:
dragonegg/trunk/Makefile
Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=100960&r1=100959&r2=100960&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Sun Apr 11 03:55:22 2010
@@ -13,8 +13,12 @@
# object directories.
SRC_DIR?=$(PWD)
-CFLAGS+=-Wall -Werror $(shell $(LLVM_CONFIG) --cflags)
-CXXFLAGS+=-Wall -Werror $(shell $(LLVM_CONFIG) --cxxflags)
+ifndef VERBOSE
+ QUIET:=@
+endif
+
+CFLAGS+=-Wall $(shell $(LLVM_CONFIG) --cflags)
+CXXFLAGS+=-Wall $(shell $(LLVM_CONFIG) --cxxflags)
GCC_PLUGIN_DIR=$(shell $(GCC) -print-file-name=plugin)
TARGET_TRIPLE:=$(shell $(GCC) -v 2>&1 | grep "^Target:" | sed -e "s/^Target: *//")
@@ -51,27 +55,33 @@
default: $(PLUGIN)
$(TARGET_UTIL_OBJECTS): %.o : $(SRC_DIR)/utils/%.cpp
- $(CXX) -c $(PREPROCESSOR) $(CXXFLAGS) $<
+ @echo Compiling utils/$(<F)
+ $(QUIET)$(CXX) -c $(PREPROCESSOR) $(CXXFLAGS) $<
$(TARGET_UTIL): $(TARGET_UTIL_OBJECTS)
- $(CXX) -o $@ $^ $(LINKER)
+ @echo Linking $(@F)
+ $(QUIET)$(CXX) -o $@ $^ $(LINKER)
%.o : $(SRC_DIR)/%.c $(TARGET_UTIL)
- $(CC) -c $(PREPROCESSOR) $(TARGET_HEADERS) $(CFLAGS) $<
+ @echo Compiling $(<F)
+ $(QUIET)$(CC) -c $(PREPROCESSOR) $(TARGET_HEADERS) $(CFLAGS) $<
%.o : $(SRC_DIR)/%.cpp $(TARGET_UTIL)
- $(CXX) -c $(PREPROCESSOR) $(TARGET_HEADERS) $(CXXFLAGS) $<
+ @echo Compiling $(<F)
+ $(QUIET)$(CXX) -c $(PREPROCESSOR) $(TARGET_HEADERS) $(CXXFLAGS) $<
$(TARGET_OBJECT): $(TARGET_UTIL)
- $(CXX) -o $@ -c $(PREPROCESSOR) $(TARGET_HEADERS) $(CXXFLAGS) \
+ @echo Compiling $(shell $(TARGET_UTIL) -p)/llvm-target.cpp
+ $(QUIET)$(CXX) -o $@ -c $(PREPROCESSOR) $(TARGET_HEADERS) $(CXXFLAGS) \
$(TARGET_SOURCE)
$(PLUGIN): $(PLUGIN_OBJECTS) $(TARGET_OBJECT) $(TARGET_UTIL)
- $(CXX) -shared $(PLUGIN_OBJECTS) $(TARGET_OBJECT) -o $@ $(LINKER) \
- $(shell $(LLVM_CONFIG) --libs $(shell $(TARGET_UTIL) -p))
+ @echo Linking $(@F)
+ $(QUIET)$(CXX) -shared $(PLUGIN_OBJECTS) $(TARGET_OBJECT) -o $@ \
+ $(LINKER) $(shell $(LLVM_CONFIG) --libs $(shell $(TARGET_UTIL) -p))
clean::
- rm -f *.o *.d $(PLUGIN) $(TARGET_UTIL)
+ $(QUIET)rm -f *.o *.d $(PLUGIN) $(TARGET_UTIL)
-include $(ALL_OBJECTS:.o=.d)
More information about the llvm-commits
mailing list