diff options
Diffstat (limited to 'Makefile.dg')
-rw-r--r-- | Makefile.dg | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.dg b/Makefile.dg index 9d8cf09..eb693be 100644 --- a/Makefile.dg +++ b/Makefile.dg @@ -111,10 +111,12 @@ SRC = \ OBJ = $(patsubst %.c,%.o,$(patsubst %.cc,%.o,$(patsubst %.cpp,%.o,$(SRC)))) -CXXFLAGS = -DUI_X11 -O3 -g -Wall -Werror -std=c++11 -Idrumgizmo/getoptpp -Idrumgizmo/ -Idrumgizmo/hugin -Idrumgizmo/plugingui/ -Idrumgizmo/src/ -Idrumgizmo/zita-resampler/libs -Idrumgizmo/pugixml/src -CFLAGS = -O3 -g -Wall -Werror +CXXFLAGS = -MMD -DUI_X11 -O3 -g -Wall -std=c++11 -Idrumgizmo/getoptpp -Idrumgizmo/ -Idrumgizmo/hugin -Idrumgizmo/plugingui/ -Idrumgizmo/src/ -Idrumgizmo/zita-resampler/libs -Idrumgizmo/pugixml/src +CFLAGS = -MMD -O3 -g -Wall -Werror LDFLAGS = -lm -lX11 -lXext -pthread -lsndfile +DEPS := $(OBJ:.o=.d) + %.o: %.c gcc $(CFLAGS) -c $< -o $@ @@ -126,3 +128,5 @@ plugingui: $(OBJ) clean: rm -f plugingui $(OBJ) + +-include $(DEPS)
\ No newline at end of file |