Added -MP dependency generation option to compile flags
This commit is contained in:
parent
f55d9f4283
commit
54af451b4a
4
Makefile
4
Makefile
|
@ -1,4 +1,4 @@
|
||||||
VERSION := git-20141102
|
VERSION := git-20141114
|
||||||
|
|
||||||
PREFIX := /usr/local
|
PREFIX := /usr/local
|
||||||
MANPREFIX := $(PREFIX)/share/man
|
MANPREFIX := $(PREFIX)/share/man
|
||||||
|
@ -20,7 +20,7 @@ $(OBJ): Makefile
|
||||||
-include $(DEP)
|
-include $(DEP)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -MMD -c -o $@ $<
|
$(CC) $(CFLAGS) $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -MMD -MP -c -o $@ $<
|
||||||
|
|
||||||
config.h:
|
config.h:
|
||||||
cp config.def.h $@
|
cp config.def.h $@
|
||||||
|
|
Loading…
Reference in New Issue