PROJECT_NAME = template_thirdpartylib PROJECT_VERSION = 0.0.0 THIRDPARTY_LIBRARY_TARGETS = libfoo INSTALLED_TARGETS = ${THIRDPARTY_LIBRARY_TARGETS} PLATFORMS_${THIRDPARTY_LIBRARY_TARGETS} = macosx linux windows android iphonesimulator iphoneos THIRDPARTY_LIBRARY_PRISTINE_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS} = libfoo-0.0.0 #Patterns: BUILT_LIBRARY_LOCATION_${target}, BUILT_LIBRARY_LOCATION_${target}_${platform}; define one or the other, not both. Can be multiple files. BUILT_LIBRARY_LOCATION_${THIRDPARTY_LIBRARY_TARGETS} = ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/libfoo.a THIRDPARTY_LIBRARY_DEPENDENCIES = LINKFLAGS = INCLUDES_NO_SUBDIR = \ ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/foo.h define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_macosx #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ export CC="${CC_macosx_$1} ${CCFLAGS_macosx} ${CCFLAGS_macosx_$1}"; \ export AR="${AR_macosx}"; \ export RANLIB="${RANLIB_macosx}"; \ ./configure && \ ${MAKE} endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_macosx #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} clean endef define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_windows #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} -f Makefile.mingw CC="${CC_windows_$1} ${CCFLAGS_windows} ${CCFLAGS_windows_$1}" AR="${AR_windows_$1}" RANLIB="${RANLIB_windows_$1}" endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_windows #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} -f Makefile.mingw clean endef define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_linux #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ./configure && \ ${MAKE} endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_linux #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} clean endef # Postamble to invoke stemconfig makefile. Do not modify. UNAME = ${shell uname} ifeq (${UNAME},Linux) STEM_SHARED_DIR ?= /usr/local/stem else ifeq (${UNAME},Darwin) STEM_SHARED_DIR ?= /usr/local/stem else STEM_SHARED_DIR ?= C:/stem endif include ${STEM_SHARED_DIR}/Makefile.global