X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/af1b39c8dba29d0601b540b1892bb22bbe00de0d..7d1614894335eed4a086e1c2712dafea9c00a3f1:/projects/sgauthstress/Makefile?ds=inline diff --git a/projects/sgauthstress/Makefile b/projects/sgauthstress/Makefile index 67eaf5fc..4474e77f 100644 --- a/projects/sgauthstress/Makefile +++ b/projects/sgauthstress/Makefile @@ -66,6 +66,13 @@ deps: $(SRCS) ../../Makefile.conf $(MAKE) -C $(DIR_LIBSRC) @>deps ;\ for file in $(SRCS); do\ - echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ - printf '\t$$(CC) -c $$< $(CXXFLAGS)\n' >> deps ;\ + echo "$$file" | grep ".c$$" > /dev/null;\ + if [ $$? -eq 0 ];\ + then\ + echo "`$(CC) $(CFLAGS) -MM $$file` Makefile" >> deps ;\ + printf '%b\n' '\t$$(CC) $(CFLAGS) -c $$<' >> deps ;\ + else\ + echo "`$(CXX) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\ + printf '%b\n' '\t$$(CXX) $(CXXFLAGS) -c $$<' >> deps ;\ + fi;\ done