Attempt to have a working SDL 1.2.15 working on the Casio fx-CG50/Graph 90+E and fx-Cg10/20/PRIZM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

82 lines
2.1 KiB

# Makefile to build the SDL library
INCLUDE = -I./include -I/home/sylvain/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/11.1.0/include/openlibm/
CFLAGS = -O2 $(INCLUDE) -lm -m4-nofpu -mb -ffreestanding -nostdlib -Wa,--dsp
AR = sh-elf-gcc-ar
RANLIB = sh-elf-gcc-ranlib
CC = sh-elf-gcc
CONFIG_H = include/SDL_config.h
TARGET = libSDL_prizm.a
SOURCES = \
src/SDL.c \
src/SDL_error.c \
src/SDL_fatal.c \
src/audio/SDL_audio.c \
src/audio/SDL_audiocvt.c \
src/cpuinfo/SDL_cpuinfo.c \
src/events/SDL_active.c \
src/events/SDL_events.c \
src/events/SDL_expose.c \
src/events/SDL_keyboard.c \
src/events/SDL_mouse.c \
src/events/SDL_quit.c \
src/events/SDL_resize.c \
src/file/SDL_rwops.c \
src/joystick/SDL_joystick.c \
src/stdlib/SDL_getenv.c \
src/stdlib/SDL_iconv.c \
src/stdlib/SDL_malloc.c \
src/stdlib/SDL_qsort.c \
src/stdlib/SDL_stdlib.c \
src/stdlib/SDL_string.c \
src/thread/SDL_thread.c \
src/thread/generic/SDL_syscond.c \
src/thread/generic/SDL_sysmutex.c \
src/thread/generic/SDL_syssem.c \
src/thread/generic/SDL_systhread.c \
src/timer/SDL_timer.c \
src/timer/prizm/SDL_systimer.c \
src/video/SDL_blit.c \
src/video/SDL_blit_0.c \
src/video/SDL_blit_1.c \
src/video/SDL_blit_A.c \
src/video/SDL_blit_N.c \
src/video/SDL_bmp.c \
src/video/SDL_cursor.c \
src/video/SDL_gamma.c \
src/video/SDL_pixels.c \
src/video/SDL_RLEaccel.c \
src/video/SDL_stretch.c \
src/video/SDL_surface.c \
src/video/SDL_video.c \
src/video/SDL_yuv.c \
src/video/SDL_yuv_mmx.c \
src/video/SDL_yuv_sw.c \
src/video/prizm/SDL_prizmevents.c \
src/video/prizm/SDL_prizmfonts.c \
src/video/prizm/SDL_prizmnti.c \
src/video/prizm/SDL_prizmutils.c \
src/video/prizm/SDL_prizmvideo.c \
src/gfx/SDL_framerate.c \
src/gfx/SDL_gfxBlitFunc.c \
src/gfx/SDL_gfxPrimitives.c \
src/gfx/SDL_imageFilter.c \
src/gfx/SDL_rotozoom.c \
OBJECTS = $(SOURCES:.c=.o)
all: $(TARGET)
$(TARGET): $(OBJECTS)
#cp $(CONFIG_H).default $(CONFIG_H)
$(AR) cr $@ $^
$(RANLIB) $@
#$(STRIP) --strip-unneeded $@
.c.o:
$(CC) $(INCLUDE) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJECTS) $(TARGET)