Make sure 'lib' folders are created first.

This commit is contained in:
Sanel Zukan 2016-07-13 12:52:36 +02:00
parent 482ced1c5c
commit 7cc34bd248
1 changed files with 5 additions and 1 deletions

View File

@ -50,16 +50,20 @@ if $(CURL_CFLAGS) || $(CURL_LIBS) {
$(PTHREAD_CFLAGS) $(PTHREAD_CFLAGS)
$(PTHREAD_LIBS) ; $(PTHREAD_LIBS) ;
MkDir $(XMLRPC_C_LIB_DIR) ;
# xmlrpc-c related builds # xmlrpc-c related builds
rule XmlrpcLibrary { rule XmlrpcLibrary {
local lib = [ FDirName $(XMLRPC_C_LIB_DIR) $(<) ] ; local lib = [ FDirName $(XMLRPC_C_LIB_DIR) $(<) ] ;
local libe = $(lib:S=$(SUFLIB)) ;
# compile it with OPTIMFLAGS got from top Jamconfig # compile it with OPTIMFLAGS got from top Jamconfig
ObjectCcFlags $(>) : $(XMLRPC_C_FLAGS) $(OPTIMFLAGS) ; ObjectCcFlags $(>) : $(XMLRPC_C_FLAGS) $(OPTIMFLAGS) ;
StaticLibrary $(lib) : $(>) ; StaticLibrary $(lib) : $(>) ;
LocalDepends $(libe) : $(XMLRPC_C_LIB_DIR) ;
# make sure libraries are build first # make sure libraries are build first
LocalDepends $(BINARY) : $(lib:S=$(SUFLIB)) ; LocalDepends $(BINARY) : $(libe) ;
} }
SEARCH_SOURCE += [ FDirName $(XMLRPC_C_SRC_PATH) src ] ; SEARCH_SOURCE += [ FDirName $(XMLRPC_C_SRC_PATH) src ] ;