PROJECT_NAME = sdl2 PROJECT_VERSION = 2.0.22 THIRDPARTY_LIBRARY_TARGETS = libsdl2 INSTALLED_TARGETS = ${THIRDPARTY_LIBRARY_TARGETS} PLATFORMS_${THIRDPARTY_LIBRARY_TARGETS} = macosx linux windows android iphonesimulator iphoneos THIRDPARTY_LIBRARY_PRISTINE_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS} = SDL2-2.0.22 #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}}/install/usr/local/lib/libSDL2.a \ ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/install/usr/local/lib/libSDL2main.a THIRDPARTY_LIBRARY_DEPENDENCIES = LINKFLAGS = INCLUDE_DIR = ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/install/usr/local/include INCLUDES = \ ${INCLUDE_DIR}/SDL2/begin_code.h \ ${INCLUDE_DIR}/SDL2/close_code.h \ ${INCLUDE_DIR}/SDL2/SDL_assert.h \ ${INCLUDE_DIR}/SDL2/SDL_atomic.h \ ${INCLUDE_DIR}/SDL2/SDL_audio.h \ ${INCLUDE_DIR}/SDL2/SDL_bits.h \ ${INCLUDE_DIR}/SDL2/SDL_blendmode.h \ ${INCLUDE_DIR}/SDL2/SDL_clipboard.h \ ${INCLUDE_DIR}/SDL2/SDL_config.h \ ${INCLUDE_DIR}/SDL2/SDL_cpuinfo.h \ ${INCLUDE_DIR}/SDL2/SDL_egl.h \ ${INCLUDE_DIR}/SDL2/SDL_endian.h \ ${INCLUDE_DIR}/SDL2/SDL_error.h \ ${INCLUDE_DIR}/SDL2/SDL_events.h \ ${INCLUDE_DIR}/SDL2/SDL_filesystem.h \ ${INCLUDE_DIR}/SDL2/SDL_gamecontroller.h \ ${INCLUDE_DIR}/SDL2/SDL_gesture.h \ ${INCLUDE_DIR}/SDL2/SDL.h \ ${INCLUDE_DIR}/SDL2/SDL_haptic.h \ ${INCLUDE_DIR}/SDL2/SDL_hidapi.h \ ${INCLUDE_DIR}/SDL2/SDL_hints.h \ ${INCLUDE_DIR}/SDL2/SDL_joystick.h \ ${INCLUDE_DIR}/SDL2/SDL_keyboard.h \ ${INCLUDE_DIR}/SDL2/SDL_keycode.h \ ${INCLUDE_DIR}/SDL2/SDL_loadso.h \ ${INCLUDE_DIR}/SDL2/SDL_locale.h \ ${INCLUDE_DIR}/SDL2/SDL_log.h \ ${INCLUDE_DIR}/SDL2/SDL_main.h \ ${INCLUDE_DIR}/SDL2/SDL_messagebox.h \ ${INCLUDE_DIR}/SDL2/SDL_metal.h \ ${INCLUDE_DIR}/SDL2/SDL_misc.h \ ${INCLUDE_DIR}/SDL2/SDL_mouse.h \ ${INCLUDE_DIR}/SDL2/SDL_mutex.h \ ${INCLUDE_DIR}/SDL2/SDL_name.h \ ${INCLUDE_DIR}/SDL2/SDL_opengles2_gl2ext.h \ ${INCLUDE_DIR}/SDL2/SDL_opengles2_gl2.h \ ${INCLUDE_DIR}/SDL2/SDL_opengles2_gl2platform.h \ ${INCLUDE_DIR}/SDL2/SDL_opengles2.h \ ${INCLUDE_DIR}/SDL2/SDL_opengles2_khrplatform.h \ ${INCLUDE_DIR}/SDL2/SDL_opengles.h \ ${INCLUDE_DIR}/SDL2/SDL_opengl_glext.h \ ${INCLUDE_DIR}/SDL2/SDL_opengl.h \ ${INCLUDE_DIR}/SDL2/SDL_pixels.h \ ${INCLUDE_DIR}/SDL2/SDL_platform.h \ ${INCLUDE_DIR}/SDL2/SDL_power.h \ ${INCLUDE_DIR}/SDL2/SDL_quit.h \ ${INCLUDE_DIR}/SDL2/SDL_rect.h \ ${INCLUDE_DIR}/SDL2/SDL_render.h \ ${INCLUDE_DIR}/SDL2/SDL_revision.h \ ${INCLUDE_DIR}/SDL2/SDL_rwops.h \ ${INCLUDE_DIR}/SDL2/SDL_scancode.h \ ${INCLUDE_DIR}/SDL2/SDL_sensor.h \ ${INCLUDE_DIR}/SDL2/SDL_shape.h \ ${INCLUDE_DIR}/SDL2/SDL_stdinc.h \ ${INCLUDE_DIR}/SDL2/SDL_surface.h \ ${INCLUDE_DIR}/SDL2/SDL_system.h \ ${INCLUDE_DIR}/SDL2/SDL_syswm.h \ ${INCLUDE_DIR}/SDL2/SDL_test_assert.h \ ${INCLUDE_DIR}/SDL2/SDL_test_common.h \ ${INCLUDE_DIR}/SDL2/SDL_test_compare.h \ ${INCLUDE_DIR}/SDL2/SDL_test_crc32.h \ ${INCLUDE_DIR}/SDL2/SDL_test_font.h \ ${INCLUDE_DIR}/SDL2/SDL_test_fuzzer.h \ ${INCLUDE_DIR}/SDL2/SDL_test.h \ ${INCLUDE_DIR}/SDL2/SDL_test_harness.h \ ${INCLUDE_DIR}/SDL2/SDL_test_images.h \ ${INCLUDE_DIR}/SDL2/SDL_test_log.h \ ${INCLUDE_DIR}/SDL2/SDL_test_md5.h \ ${INCLUDE_DIR}/SDL2/SDL_test_memory.h \ ${INCLUDE_DIR}/SDL2/SDL_test_random.h \ ${INCLUDE_DIR}/SDL2/SDL_thread.h \ ${INCLUDE_DIR}/SDL2/SDL_timer.h \ ${INCLUDE_DIR}/SDL2/SDL_touch.h \ ${INCLUDE_DIR}/SDL2/SDL_types.h \ ${INCLUDE_DIR}/SDL2/SDL_version.h \ ${INCLUDE_DIR}/SDL2/SDL_video.h \ ${INCLUDE_DIR}/SDL2/SDL_vulkan.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} && \ ${MAKE} install DESTDIR=${CURDIR}/${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/install 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} && \ ${MAKE} install DESTDIR=${CURDIR}/${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/install 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