From: Maxim Mamontov Date: Wed, 14 Sep 2011 14:07:58 +0000 (+0300) Subject: Use correct compiler and flags for sources in libs X-Git-Tag: 2.408-rc1~62 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/03e7dd38e43d467d835fe48ee5bea5acbb37f08d?ds=inline Use correct compiler and flags for sources in libs --- 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\