From: notaz Date: Fri, 2 Mar 2012 21:07:50 +0000 (+0200) Subject: gpulib: make gpulib.a a dependency X-Git-Tag: r14~3 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=966c128ddcf8b31154d8d2afe62088b3b8f58b4a;p=pcsx_rearmed.git gpulib: make gpulib.a a dependency so that stuff rebuilds when it changes --- 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):