From 966c128ddcf8b31154d8d2afe62088b3b8f58b4a Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 2 Mar 2012 23:07:50 +0200 Subject: [PATCH] gpulib: make gpulib.a a dependency so that stuff rebuilds when it changes --- plugins/gpulib/gpulib.mak | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/plugins/gpulib/gpulib.mak b/plugins/gpulib/gpulib.mak index 2cc1e28c..3a7f7cd7 100644 --- a/plugins/gpulib/gpulib.mak +++ b/plugins/gpulib/gpulib.mak @@ -1,5 +1,5 @@ # depends on ARCH definition -# always adding gpulib to LDLIBS in case cspace is needed +# always adding gpulib to deps in case cspace is needed LDFLAGS += -shared ifeq "$(ARCH)" "arm" @@ -27,7 +27,6 @@ ifdef DEBUG endif GPULIB_A = ../gpulib/gpulib$(EXT).a -LDLIBS += $(GPULIB_A) ifdef BIN_STANDLALONE TARGETS += $(BIN_STANDLALONE)$(EXT) @@ -36,16 +35,16 @@ ifdef BIN_GPULIB TARGETS += $(BIN_GPULIB)$(EXT) endif -all: $(GPULIB_A) $(TARGETS) +all: $(TARGETS) ifdef BIN_STANDLALONE -$(BIN_STANDLALONE)$(EXT): $(SRC) $(SRC_STANDALONE) - $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(LDLIBS_STANDALONE) +$(BIN_STANDLALONE)$(EXT): $(SRC) $(SRC_STANDALONE) $(GPULIB_A) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) $(LDLIBS_STANDALONE) endif ifdef BIN_GPULIB -$(BIN_GPULIB)$(EXT): $(SRC) $(SRC_GPULIB) - $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(LDLIBS_GPULIB) +$(BIN_GPULIB)$(EXT): $(SRC) $(SRC_GPULIB) $(GPULIB_A) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) $(LDLIBS_GPULIB) endif $(GPULIB_A): -- 2.39.5