Makefile.dc
author Ryan C. Gordon <icculus@icculus.org>
Mon, 12 Dec 2005 09:22:36 +0000
changeset 1200 8f418dce02b2
parent 509 dad72daf44b3
child 1461 11134dc42da8
permissions -rw-r--r--
Date: Sun, 11 Dec 2005 20:37:04 +0100
From: Olivier Boudeville <olivier.boudeville@online.fr>
To: "A list for developers using the SDL library. \(includes SDL-announce\)" <sdl@libsdl.org>
Subject: [SDL] NetBSD build patch


Hi everybody,

apparently the SDL-1.2.9 source archive could not compile "as is" on
NetBSD 2.0_STABLE due to a pthread detection issue in the configure script.

I attached a small patch that can be applied to configure.in so that SDL
can be directly (i.e. without the NetBSD package manager) configured and
built successfully on NetBSD (at least on the one I tried !).

Hope this helps,

Olivier.
     1 #GL=1
     2 
     3 CC = sh-elf-gcc -ml -m4-single-only
     4 AR = sh-elf-ar
     5 KOS_BASE=/prog/kos-1.1.7
     6 INCS = -I$(KOS_BASE)/libc/include -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include
     7 DEFS =-DNO_SIGNAL_H -DENABLE_DC
     8 
     9 ifdef GL
    10 DEFS += -DHAVE_OPENGL
    11 TARGET = libSDL_gl.a
    12 else
    13 TARGET = libSDL.a
    14 endif
    15 
    16 OPTFLAGS=-O2 -fomit-frame-pointer
    17 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)
    18 
    19 SRCS = \
    20 	src/audio/dc/SDL_dcaudio.c \
    21 	src/audio/dc/aica.c \
    22 	src/audio/SDL_audio.c \
    23 	src/audio/SDL_audiocvt.c \
    24 	src/audio/SDL_audiodev.c \
    25 	src/audio/SDL_audiomem.c \
    26 	src/audio/SDL_mixer.c \
    27 	src/audio/SDL_wave.c \
    28 	src/cdrom/dc/SDL_syscdrom.c \
    29 	src/cdrom/SDL_cdrom.c \
    30 	src/endian/SDL_endian.c \
    31 	src/events/SDL_active.c \
    32 	src/events/SDL_events.c \
    33 	src/events/SDL_expose.c \
    34 	src/events/SDL_keyboard.c \
    35 	src/events/SDL_mouse.c \
    36 	src/events/SDL_quit.c \
    37 	src/events/SDL_resize.c \
    38 	src/file/SDL_rwops.c \
    39 	src/joystick/dc/SDL_sysjoystick.c \
    40 	src/joystick/SDL_joystick.c \
    41 	src/SDL.c \
    42 	src/SDL_error.c \
    43 	src/SDL_fatal.c \
    44 	src/SDL_getenv.c \
    45 	src/SDL_loadso.c \
    46 	src/thread/dc/SDL_syscond.c \
    47 	src/thread/dc/SDL_sysmutex.c \
    48 	src/thread/dc/SDL_syssem.c \
    49 	src/thread/dc/SDL_systhread.c \
    50 	src/thread/SDL_thread.c \
    51 	src/timer/dc/SDL_systimer.c \
    52 	src/timer/SDL_timer.c \
    53 	src/video/dc/SDL_dcevents.c \
    54 	src/video/dc/SDL_dcvideo.c \
    55 	src/video/SDL_blit.c \
    56 	src/video/SDL_blit_0.c \
    57 	src/video/SDL_blit_1.c \
    58 	src/video/SDL_blit_A.c \
    59 	src/video/SDL_blit_N.c \
    60 	src/video/SDL_bmp.c \
    61 	src/video/SDL_cursor.c \
    62 	src/video/SDL_gamma.c \
    63 	src/video/SDL_pixels.c \
    64 	src/video/SDL_RLEaccel.c \
    65 	src/video/SDL_stretch.c \
    66 	src/video/SDL_surface.c \
    67 	src/video/SDL_video.c \
    68 	src/video/SDL_yuv.c \
    69 	src/video/SDL_yuv_sw.c \
    70 
    71 OBJS = $(SRCS:.c=.o)
    72 
    73 TEST = \
    74 	test/checkkeys.c \
    75 	test/graywin.c \
    76 	test/loopwave.c \
    77 	test/testalpha.c \
    78 	test/testbitmap.c \
    79 	test/testcdrom.c \
    80 	test/testerror.c \
    81 	test/testgamma.c \
    82 	test/testgl.c \
    83 	test/testhread.c \
    84 	test/testjoystick.c \
    85 	test/testkeys.c \
    86 	test/testlock.c \
    87 	test/testoverlay.c \
    88 	test/testpalette.c \
    89 	test/testsem.c \
    90 	test/testsprite.c \
    91 	test/testtimer.c \
    92 	test/testtypes.c \
    93 	test/testver.c \
    94 	test/testvidinfo.c \
    95 	test/testwin.c \
    96 	test/testwm.c \
    97 	test/threadwin.c \
    98 	test/torturethread.c \
    99 
   100 clean:
   101 	rm $(OBJS)
   102 
   103 $(TARGET) : $(OBJS)
   104 	$(AR) rcs $(TARGET) $(OBJS)
   105