diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-07-25 22:03:22 -0700 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-07-25 22:15:14 -0700 |
commit | e3ee058917c8d200f8664ed3034080905d83f3fe (patch) | |
tree | c95f9aee173259e6e6fc09a788ade94a8c73c047 /Makefile | |
parent | c1f95cebfda67f0700cb2730a9a72b49811dac66 (diff) | |
download | pianobar-windows-e3ee058917c8d200f8664ed3034080905d83f3fe.tar.gz pianobar-windows-e3ee058917c8d200f8664ed3034080905d83f3fe.tar.bz2 pianobar-windows-e3ee058917c8d200f8664ed3034080905d83f3fe.zip |
Makefile: remove dependency generation for *.d files
The %.d rule means that 'make clean' will try to generate dependency
files first. Let's use somem extra gcc flags to make this simpler.
Fixes Github Issue #468
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -118,13 +118,6 @@ libpiano.so.0: ${LIBPIANO_RELOBJ} ${LIBPIANO_HDR} ${LIBWAITRESS_RELOBJ} \ @${AR} rcs libpiano.a ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} -# build dependency files -%.d: %.c - @set -e; rm -f $@; \ - $(CC) -M ${ALL_CFLAGS} $< > $@.$$$$; \ - sed '1 s,^.*\.o[ :]*,$*.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -include $(PIANOBAR_SRC:.c=.d) -include $(LIBPIANO_SRC:.c=.d) -include $(LIBWAITRESS_SRC:.c=.d) @@ -132,12 +125,12 @@ libpiano.so.0: ${LIBPIANO_RELOBJ} ${LIBPIANO_HDR} ${LIBWAITRESS_RELOBJ} \ # build standard object files %.o: %.c @echo " CC $<" - @${CC} -c -o $@ ${ALL_CFLAGS} $< + @${CC} -c -o $@ ${ALL_CFLAGS} -MMD -MF $*.d -MP $< # create position independent code (for shared libraries) %.lo: %.c @echo " CC $< (PIC)" - @${CC} -c -fPIC -o $@ ${ALL_CFLAGS} $< + @${CC} -c -fPIC -o $@ ${ALL_CFLAGS} -MMD -MF $*.d -MP $< clean: @echo " CLEAN" |