make "nat-libs" a dependency of the "deps-common" target
This commit is contained in:
parent
bf86dccf4d
commit
178ded44a3
|
@ -23,7 +23,7 @@ sanity-checks:
|
||||||
# (timestamp-checked) prerequisites here
|
# (timestamp-checked) prerequisites here
|
||||||
#- $(NIM_BINARY) is both a proxy for submodules having been initialised
|
#- $(NIM_BINARY) is both a proxy for submodules having been initialised
|
||||||
# and a check for the actual compiler build
|
# and a check for the actual compiler build
|
||||||
deps-common: sanity-checks $(NIM_BINARY) $(NIMBLE_DIR)
|
deps-common: sanity-checks $(NIM_BINARY) $(NIMBLE_DIR) nat-libs
|
||||||
|
|
||||||
#- conditionally re-builds the Nim compiler (not usually needed, because `make update` calls this rule; delete $(NIM_BINARY) to force it)
|
#- conditionally re-builds the Nim compiler (not usually needed, because `make update` calls this rule; delete $(NIM_BINARY) to force it)
|
||||||
#- allows parallel building with the '+' prefix
|
#- allows parallel building with the '+' prefix
|
||||||
|
@ -60,7 +60,7 @@ update-remote:
|
||||||
|
|
||||||
nat-libs: | libminiupnpc.a libnatpmp.a
|
nat-libs: | libminiupnpc.a libnatpmp.a
|
||||||
|
|
||||||
libminiupnpc.a: | deps
|
libminiupnpc.a: | sanity-checks
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
+ [ -e vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc/$@ ] || \
|
+ [ -e vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc/$@ ] || \
|
||||||
$(MAKE) -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -f Makefile.mingw CC=gcc init $@ $(HANDLE_OUTPUT)
|
$(MAKE) -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -f Makefile.mingw CC=gcc init $@ $(HANDLE_OUTPUT)
|
||||||
|
@ -68,7 +68,7 @@ else
|
||||||
+ $(MAKE) -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc $@ $(HANDLE_OUTPUT)
|
+ $(MAKE) -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc $@ $(HANDLE_OUTPUT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libnatpmp.a: | deps
|
libnatpmp.a: | sanity-checks
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
+ $(MAKE) -C vendor/nim-nat-traversal/vendor/libnatpmp CC=gcc CFLAGS="-Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR" $@ $(HANDLE_OUTPUT)
|
+ $(MAKE) -C vendor/nim-nat-traversal/vendor/libnatpmp CC=gcc CFLAGS="-Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR" $@ $(HANDLE_OUTPUT)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue