PROJECT_NAME = zlib PROJECT_VERSION = 1.2.11 THIRDPARTY_LIBRARY_TARGETS = zlib INSTALLED_TARGETS = ${THIRDPARTY_LIBRARY_TARGETS} PLATFORMS_${THIRDPARTY_LIBRARY_TARGETS} = windows THIRDPARTY_LIBRARY_PRISTINE_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS} = zlib-1.2.11 #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}}/libz.a THIRDPARTY_LIBRARY_DEPENDENCIES = LINKFLAGS = INCLUDES_NO_SUBDIR = \ ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/zlib.h \ ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/zconf.h PREFIX_i386 = C:/MinGW/bin/ PREFIX_x86_64 = C:/MinGW-w64/bin/x86_64-w64-mingw32- define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_macosx #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ export CC="${CC_macosx_$1} ${CCFLAGS_macosx}"; \ 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 win32/Makefile.gcc PREFIX=${PREFIX_$1} CC=${CC_windows_$1} LD=${CC_windows_$1} AR=${AR_windows_$1} RC=${WINDRES_windows_$1} endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_windows #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} -f win32/Makefile.gcc clean endef define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_linux #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ export CC="${CC_linux_$1} ${CCFLAGS_linux} ${CCFLAGS_linux_$1"; \ ./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