From 9fc4fe51e2e4f87a8e546aa3c64c639d0273d36c Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Sun, 8 Nov 2020 12:10:06 -0500 Subject: [PATCH] Fix Makefile Dependencies (*.d) were installed in root folder. Now they are in the project folder. --- GRRLIB/GRRLIB/Makefile | 5 ++++- GRRLIB/lib/pngu/Makefile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/GRRLIB/GRRLIB/Makefile b/GRRLIB/GRRLIB/Makefile index 01d1ac9..bfb09a7 100644 --- a/GRRLIB/GRRLIB/Makefile +++ b/GRRLIB/GRRLIB/Makefile @@ -28,15 +28,18 @@ CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE) LIB := grrlib CFILES := $(wildcard *.c) OFILES := $(CFILES:.c=.o) +DEPENDS := $(OFILES:.o=.d) ARC := lib$(LIB).a HDR := $(LIB).h INL := $(wildcard $(LIB)/*.h) +export DEPSDIR := $(CURDIR) + all : $(OFILES) $(AR) -r $(ARC) $(OFILES) clean : - rm -f $(OFILES) $(ARC) + rm -f $(OFILES) $(DEPENDS) $(ARC) install : mkdir -p $(INSTALL_LIB) $(INSTALL_INC) $(INSTALL_INC)/grrlib diff --git a/GRRLIB/lib/pngu/Makefile b/GRRLIB/lib/pngu/Makefile index dfa6631..2060d9a 100644 --- a/GRRLIB/lib/pngu/Makefile +++ b/GRRLIB/lib/pngu/Makefile @@ -25,14 +25,17 @@ CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE) LIB := pngu CFILES := $(wildcard *.c) OFILES := $(CFILES:.c=.o) +DEPENDS := $(OFILES:.o=.d) ARC := lib$(LIB).a HDR := $(LIB).h +export DEPSDIR := $(CURDIR) + all : $(OFILES) $(AR) -r $(ARC) $(OFILES) clean : - rm -f $(OFILES) $(ARC) + rm -f $(OFILES) $(DEPENDS) $(ARC) install : mkdir -p $(INSTALL_LIB) $(INSTALL_INC)