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)