- Fix LLI so that it simulates the endianness of the target machine
[oota-llvm.git] / Makefile.rules
index 1b0dd594cc0c9eb712c2f8efa93cba4ed44fe46f..01261acd2b06605a1da5af574acc443c934cae31 100644 (file)
@@ -198,7 +198,9 @@ BISON    = bison
 # source files...
 # The local Makefile can list other Source files via ExtraSource = ...
 # 
+ifndef Source
 Source  := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l)
+endif
 
 Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source)))))
 ObjectsO := $(addprefix $(BUILD_ROOT)/Release/,$(Objs))
@@ -333,6 +335,7 @@ $(LIBNAME_OBJP): $(ObjectsP) $(LibSubDirs) $(LIBPROFILE)/.dir
        $(VERB) $(Relink) -o $@ $(ObjectsP) $(LibSubDirs)
 
 $(LIBNAME_OBJG): $(ObjectsG) $(LibSubDirs) $(LIBDEBUG)/.dir
+       @echo "Linking $@"
        $(VERB) $(Relink) -o $@ $(ObjectsG) $(LibSubDirs)
 
 endif