2022-07-19 07:48:31 +04:00
|
|
|
# The threads code require a rather new PSP SDK with SceLwMutexWorkarea:
|
|
|
|
# https://github.com/pspdev/pspsdk/commit/276d9e3ca6fb26479ad050c21431b2a40f518365
|
|
|
|
#
|
2021-04-18 07:35:25 +04:00
|
|
|
TARGET_LIB = libSDL2.a
|
2021-12-18 14:14:57 +04:00
|
|
|
EXTRA_TARGETS = libSDL2main.a
|
2021-04-18 07:35:25 +04:00
|
|
|
OBJS= src/SDL.o \
|
|
|
|
src/SDL_assert.o \
|
2021-12-07 05:20:09 +04:00
|
|
|
src/SDL_dataqueue.o \
|
2021-04-18 07:35:25 +04:00
|
|
|
src/SDL_error.o \
|
|
|
|
src/SDL_hints.o \
|
|
|
|
src/SDL_log.o \
|
|
|
|
src/atomic/SDL_atomic.o \
|
|
|
|
src/atomic/SDL_spinlock.o \
|
|
|
|
src/audio/SDL_audio.o \
|
|
|
|
src/audio/SDL_audiocvt.o \
|
|
|
|
src/audio/SDL_audiodev.o \
|
|
|
|
src/audio/SDL_audiotypecvt.o \
|
|
|
|
src/audio/SDL_mixer.o \
|
|
|
|
src/audio/SDL_wave.o \
|
|
|
|
src/audio/psp/SDL_pspaudio.o \
|
|
|
|
src/cpuinfo/SDL_cpuinfo.o \
|
|
|
|
src/events/SDL_clipboardevents.o \
|
2021-12-07 05:20:09 +04:00
|
|
|
src/events/SDL_displayevents.o \
|
2021-04-18 07:35:25 +04:00
|
|
|
src/events/SDL_dropevents.o \
|
|
|
|
src/events/SDL_events.o \
|
|
|
|
src/events/SDL_gesture.o \
|
|
|
|
src/events/SDL_keyboard.o \
|
|
|
|
src/events/SDL_mouse.o \
|
|
|
|
src/events/SDL_quit.o \
|
|
|
|
src/events/SDL_touch.o \
|
|
|
|
src/events/SDL_windowevents.o \
|
|
|
|
src/file/SDL_rwops.o \
|
|
|
|
src/haptic/SDL_haptic.o \
|
|
|
|
src/haptic/dummy/SDL_syshaptic.o \
|
2021-12-07 05:20:09 +04:00
|
|
|
src/hidapi/SDL_hidapi.o \
|
2021-04-18 07:35:25 +04:00
|
|
|
src/joystick/SDL_joystick.o \
|
|
|
|
src/joystick/SDL_gamecontroller.o \
|
|
|
|
src/joystick/psp/SDL_sysjoystick.o \
|
2021-12-07 05:20:09 +04:00
|
|
|
src/joystick/virtual/SDL_virtualjoystick.o \
|
2021-04-18 07:35:25 +04:00
|
|
|
src/power/SDL_power.o \
|
|
|
|
src/power/psp/SDL_syspower.o \
|
2022-07-19 07:48:31 +04:00
|
|
|
src/filesystem/psp/SDL_sysfilesystem.o \
|
2021-12-07 05:20:09 +04:00
|
|
|
src/locale/SDL_locale.o \
|
|
|
|
src/locale/dummy/SDL_syslocale.o \
|
|
|
|
src/misc/SDL_url.o \
|
|
|
|
src/misc/dummy/SDL_sysurl.o \
|
2021-04-18 07:35:25 +04:00
|
|
|
src/render/SDL_render.o \
|
|
|
|
src/render/SDL_yuv_sw.o \
|
|
|
|
src/render/psp/SDL_render_psp.o \
|
|
|
|
src/render/software/SDL_blendfillrect.o \
|
|
|
|
src/render/software/SDL_blendline.o \
|
|
|
|
src/render/software/SDL_blendpoint.o \
|
|
|
|
src/render/software/SDL_drawline.o \
|
|
|
|
src/render/software/SDL_drawpoint.o \
|
|
|
|
src/render/software/SDL_render_sw.o \
|
|
|
|
src/render/software/SDL_rotate.o \
|
2021-12-07 05:20:09 +04:00
|
|
|
src/render/software/SDL_triangle.o \
|
2021-04-18 07:35:25 +04:00
|
|
|
src/sensor/SDL_sensor.o \
|
|
|
|
src/sensor/dummy/SDL_dummysensor.o \
|
|
|
|
src/stdlib/SDL_getenv.o \
|
|
|
|
src/stdlib/SDL_iconv.o \
|
|
|
|
src/stdlib/SDL_malloc.o \
|
|
|
|
src/stdlib/SDL_qsort.o \
|
|
|
|
src/stdlib/SDL_stdlib.o \
|
|
|
|
src/stdlib/SDL_string.o \
|
|
|
|
src/stdlib/SDL_strtokr.o \
|
|
|
|
src/thread/SDL_thread.o \
|
|
|
|
src/thread/generic/SDL_systls.o \
|
|
|
|
src/thread/psp/SDL_syssem.o \
|
|
|
|
src/thread/psp/SDL_systhread.o \
|
|
|
|
src/thread/psp/SDL_sysmutex.o \
|
|
|
|
src/thread/psp/SDL_syscond.o \
|
|
|
|
src/timer/SDL_timer.o \
|
|
|
|
src/timer/psp/SDL_systimer.o \
|
|
|
|
src/video/SDL_RLEaccel.o \
|
|
|
|
src/video/SDL_blit.o \
|
|
|
|
src/video/SDL_blit_0.o \
|
|
|
|
src/video/SDL_blit_1.o \
|
|
|
|
src/video/SDL_blit_A.o \
|
|
|
|
src/video/SDL_blit_N.o \
|
|
|
|
src/video/SDL_blit_auto.o \
|
|
|
|
src/video/SDL_blit_copy.o \
|
|
|
|
src/video/SDL_blit_slow.o \
|
|
|
|
src/video/SDL_bmp.o \
|
|
|
|
src/video/SDL_clipboard.o \
|
|
|
|
src/video/SDL_fillrect.o \
|
|
|
|
src/video/SDL_pixels.o \
|
|
|
|
src/video/SDL_rect.o \
|
|
|
|
src/video/SDL_stretch.o \
|
|
|
|
src/video/SDL_surface.o \
|
|
|
|
src/video/SDL_video.o \
|
2021-12-07 05:20:09 +04:00
|
|
|
src/video/SDL_yuv.o \
|
2021-04-18 07:35:25 +04:00
|
|
|
src/video/psp/SDL_pspevents.o \
|
|
|
|
src/video/psp/SDL_pspvideo.o \
|
|
|
|
src/video/psp/SDL_pspgl.o \
|
2021-12-07 05:20:09 +04:00
|
|
|
src/video/psp/SDL_pspmouse.o \
|
|
|
|
src/video/yuv2rgb/yuv_rgb.o
|
2021-04-18 07:35:25 +04:00
|
|
|
|
2021-12-18 14:14:57 +04:00
|
|
|
SDLMAIN_OBJ = src/main/psp/SDL_psp_main.o
|
|
|
|
EXTRA_CLEAN = $(SDLMAIN_OBJ)
|
|
|
|
|
2021-04-18 07:35:25 +04:00
|
|
|
INCDIR = ./include
|
|
|
|
CFLAGS = -g -O2 -G0 -Wall -D__PSP__ -DHAVE_OPENGL
|
|
|
|
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
|
|
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
|
|
|
|
LIBDIR =
|
|
|
|
LIBS = -lGL -lGLU -lglut -lz \
|
|
|
|
-lpspvfpu -lpsphprm -lpspsdk -lpspctrl -lpspumd -lpsprtc -lpsppower -lpspgum -lpspgu -lpspaudiolib -lpspaudio -lpsphttp -lpspssl -lpspwlan \
|
|
|
|
-lpspnet_adhocmatching -lpspnet_adhoc -lpspnet_adhocctl -lm -lpspvram
|
|
|
|
|
|
|
|
PSPSDK=$(shell psp-config --pspsdk-path)
|
|
|
|
include $(PSPSDK)/lib/build.mak
|
|
|
|
|
2021-12-18 14:14:57 +04:00
|
|
|
libSDL2main.a: $(SDLMAIN_OBJ)
|
|
|
|
$(AR) cru $@ $^
|
|
|
|
$(RANLIB) $@
|