X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c2543dd1d46d0590c33ddbe275057c284f081d5a..bb0603410f7b548d52f2556cc8be734913088443:/stglibs/Makefile.in?ds=inline 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\