From 03e7dd38e43d467d835fe48ee5bea5acbb37f08d Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 14 Sep 2011 17:07:58 +0300 Subject: [PATCH] Use correct compiler and flags for sources in libs --- stglibs/Makefile.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/stglibs/Makefile.in b/stglibs/Makefile.in index b4344254..d86cac3c 100644 --- a/stglibs/Makefile.in +++ b/stglibs/Makefile.in @@ -64,8 +64,12 @@ endif deps: $(SRCS) ../../Makefile.conf @>deps ;\ - for file in $(SRCS); do\ - echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ - echo -e '\t$$(CC) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -c $$<' >> deps ;\ - done + for file in `echo "$(SRCS)" | grep ".c$$"`; do\ + echo "`$(CC) $(CFLAGS) $(SEARCH_DIRS) $(DEFS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ + echo -e '\t$$(CC) $(CFLAGS) $(SEARCH_DIRS) $(DEFS) -c $$<' >> deps ;\ + done;\ + for file in `echo "$(SRCS)" | grep ".cpp$$"`; do\ + echo "`$(CXX) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ + echo -e '\t$$(CXX) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -c $$<' >> deps ;\ + done\ -- 2.44.2