From 831b3ad714a036edab6b63f84040ab8b32a43ef4 Mon Sep 17 00:00:00 2001 From: Andreas Regel Date: Sun, 19 Oct 2014 10:42:51 +0200 Subject: Remove dependency target, instead generate dependencies during compliling. --- glcdgraphics/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'glcdgraphics') diff --git a/glcdgraphics/Makefile b/glcdgraphics/Makefile index 0b7336f..5abbb2b 100644 --- a/glcdgraphics/Makefile +++ b/glcdgraphics/Makefile @@ -36,10 +36,7 @@ HEADERS = bitmap.h font.h glcd.h image.h imagefile.h pbm.h extformats.h # Dependencies: -#MAKEDEP = g++ -MM -MG -DEPFILE = .dependencies -$(DEPFILE): Makefile - @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ +DEPFILE = $(OBJS:%.o=%.d) -include $(DEPFILE) @@ -52,8 +49,7 @@ ifdef HAVE_FREETYPE2 LIBS += -lfreetype endif DEFINES += -DHAVE_FREETYPE2 -endif### Targets: - +endif # two ifdef/endif are used because older installations may not support 'else ifdef' ifeq ($(IMAGELIB), imagemagick) @@ -68,6 +64,8 @@ ifeq ($(IMAGELIB), graphicsmagick) endif +### Targets: + all: $(LIBNAME) $(LIBNAME): $(OBJS) -- cgit v1.2.3