Makefile.dc
changeset 509 dad72daf44b3
child 1461 11134dc42da8
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile.dc	Sat Oct 05 16:50:56 2002 +0000
     1.3 @@ -0,0 +1,105 @@
     1.4 +#GL=1
     1.5 +
     1.6 +CC = sh-elf-gcc -ml -m4-single-only
     1.7 +AR = sh-elf-ar
     1.8 +KOS_BASE=/prog/kos-1.1.7
     1.9 +INCS = -I$(KOS_BASE)/libc/include -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include
    1.10 +DEFS =-DNO_SIGNAL_H -DENABLE_DC
    1.11 +
    1.12 +ifdef GL
    1.13 +DEFS += -DHAVE_OPENGL
    1.14 +TARGET = libSDL_gl.a
    1.15 +else
    1.16 +TARGET = libSDL.a
    1.17 +endif
    1.18 +
    1.19 +OPTFLAGS=-O2 -fomit-frame-pointer
    1.20 +CFLAGS=-D_arch_dreamcast $(DEFS) $(INCS) -Iinclude -Isrc -Isrc/audio -Isrc/cdrom -Isrc/endian -Isrc/events -Isrc/joystick -Isrc/thread/dc -Isrc/thread -Isrc/timer -Isrc/video $(OPTFLAGS)
    1.21 +
    1.22 +SRCS = \
    1.23 +	src/audio/dc/SDL_dcaudio.c \
    1.24 +	src/audio/dc/aica.c \
    1.25 +	src/audio/SDL_audio.c \
    1.26 +	src/audio/SDL_audiocvt.c \
    1.27 +	src/audio/SDL_audiodev.c \
    1.28 +	src/audio/SDL_audiomem.c \
    1.29 +	src/audio/SDL_mixer.c \
    1.30 +	src/audio/SDL_wave.c \
    1.31 +	src/cdrom/dc/SDL_syscdrom.c \
    1.32 +	src/cdrom/SDL_cdrom.c \
    1.33 +	src/endian/SDL_endian.c \
    1.34 +	src/events/SDL_active.c \
    1.35 +	src/events/SDL_events.c \
    1.36 +	src/events/SDL_expose.c \
    1.37 +	src/events/SDL_keyboard.c \
    1.38 +	src/events/SDL_mouse.c \
    1.39 +	src/events/SDL_quit.c \
    1.40 +	src/events/SDL_resize.c \
    1.41 +	src/file/SDL_rwops.c \
    1.42 +	src/joystick/dc/SDL_sysjoystick.c \
    1.43 +	src/joystick/SDL_joystick.c \
    1.44 +	src/SDL.c \
    1.45 +	src/SDL_error.c \
    1.46 +	src/SDL_fatal.c \
    1.47 +	src/SDL_getenv.c \
    1.48 +	src/SDL_loadso.c \
    1.49 +	src/thread/dc/SDL_syscond.c \
    1.50 +	src/thread/dc/SDL_sysmutex.c \
    1.51 +	src/thread/dc/SDL_syssem.c \
    1.52 +	src/thread/dc/SDL_systhread.c \
    1.53 +	src/thread/SDL_thread.c \
    1.54 +	src/timer/dc/SDL_systimer.c \
    1.55 +	src/timer/SDL_timer.c \
    1.56 +	src/video/dc/SDL_dcevents.c \
    1.57 +	src/video/dc/SDL_dcvideo.c \
    1.58 +	src/video/SDL_blit.c \
    1.59 +	src/video/SDL_blit_0.c \
    1.60 +	src/video/SDL_blit_1.c \
    1.61 +	src/video/SDL_blit_A.c \
    1.62 +	src/video/SDL_blit_N.c \
    1.63 +	src/video/SDL_bmp.c \
    1.64 +	src/video/SDL_cursor.c \
    1.65 +	src/video/SDL_gamma.c \
    1.66 +	src/video/SDL_pixels.c \
    1.67 +	src/video/SDL_RLEaccel.c \
    1.68 +	src/video/SDL_stretch.c \
    1.69 +	src/video/SDL_surface.c \
    1.70 +	src/video/SDL_video.c \
    1.71 +	src/video/SDL_yuv.c \
    1.72 +	src/video/SDL_yuv_sw.c \
    1.73 +
    1.74 +OBJS = $(SRCS:.c=.o)
    1.75 +
    1.76 +TEST = \
    1.77 +	test/checkkeys.c \
    1.78 +	test/graywin.c \
    1.79 +	test/loopwave.c \
    1.80 +	test/testalpha.c \
    1.81 +	test/testbitmap.c \
    1.82 +	test/testcdrom.c \
    1.83 +	test/testerror.c \
    1.84 +	test/testgamma.c \
    1.85 +	test/testgl.c \
    1.86 +	test/testhread.c \
    1.87 +	test/testjoystick.c \
    1.88 +	test/testkeys.c \
    1.89 +	test/testlock.c \
    1.90 +	test/testoverlay.c \
    1.91 +	test/testpalette.c \
    1.92 +	test/testsem.c \
    1.93 +	test/testsprite.c \
    1.94 +	test/testtimer.c \
    1.95 +	test/testtypes.c \
    1.96 +	test/testver.c \
    1.97 +	test/testvidinfo.c \
    1.98 +	test/testwin.c \
    1.99 +	test/testwm.c \
   1.100 +	test/threadwin.c \
   1.101 +	test/torturethread.c \
   1.102 +
   1.103 +clean:
   1.104 +	rm $(OBJS)
   1.105 +
   1.106 +$(TARGET) : $(OBJS)
   1.107 +	$(AR) rcs $(TARGET) $(OBJS)
   1.108 +