src/main/macos/exports/Makefile
author Sam Lantinga
Sun, 21 Sep 2003 18:32:04 +0000
changeset 720 f90d80d68071
parent 648 12a21d82a060
child 763 51b5e0be61c3
permissions -rw-r--r--
N Sep 17 8791 Sam Lantinga Re: tks source released
Date: Sun, 07 Sep 2003 02:51:58 +0200
From: Stephane Marchesin
Subject: [SDL] Two little patches

Compiling SDL with a recent gcc (gcc 3.3.1, 3.3 doesn't have this
behaviour) gives some nasty warnings :

SDL_blit_A.c: In function `BlitRGBtoRGBSurfaceAlpha128MMX':
SDL_blit_A.c:223: warning: integer constant is too large for "long" type
SDL_blit_A.c:225: warning: integer constant is too large for "long" type
SDL_blit_A.c:227: warning: integer constant is too large for "long" type
[...]

The first attached patch (longlongfix.patch) tells gcc to really treat
those constants as unsigned long long and not long.

The second patch (nasinclude.patch) fixes an include problem I had while
compiling nas audio : when the <audio/audiolib.h> file lies in
/usr/X11R6/include, a -I/usr/X11R6/include option is needed or the file
isn't found.
     1 
     2 EXPORTS = SDL.x
     3 HEADERS = \
     4 	../../../../include/SDL.h \
     5 	../../../../include/SDL_active.h \
     6 	../../../../include/SDL_audio.h \
     7 	../../../../include/SDL_byteorder.h \
     8 	../../../../include/SDL_cdrom.h \
     9 	../../../../include/SDL_copying.h \
    10 	../../../../include/SDL_endian.h \
    11 	../../../../include/SDL_error.h \
    12 	../../../../include/SDL_events.h \
    13 	../../../../include/SDL_getenv.h \
    14 	../../../../include/SDL_joystick.h \
    15 	../../../../include/SDL_keyboard.h \
    16 	../../../../include/SDL_keysym.h \
    17 	../../../../include/SDL_loadso.h \
    18 	../../../../include/SDL_mouse.h \
    19 	../../../../include/SDL_mutex.h \
    20 	../../../../include/SDL_quit.h \
    21 	../../../../include/SDL_rwops.h \
    22 	../../../../include/SDL_syswm.h \
    23 	../../../../include/SDL_thread.h \
    24 	../../../../include/SDL_timer.h \
    25 	../../../../include/SDL_types.h \
    26 	../../../../include/SDL_version.h \
    27 	../../../../include/SDL_video.h
    28 
    29 
    30 all: $(EXPORTS)
    31 
    32 $(EXPORTS): $(HEADERS)
    33 	perl gendef.pl $(HEADERS) >$@ || rm $@
    34 
    35 clean:
    36 	rm -f $(EXPORTS)