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.
slouken@0
     1
slouken@0
     2
EXPORTS = SDL.x
slouken@0
     3
HEADERS = \
slouken@0
     4
	../../../../include/SDL.h \
slouken@0
     5
	../../../../include/SDL_active.h \
slouken@0
     6
	../../../../include/SDL_audio.h \
slouken@0
     7
	../../../../include/SDL_byteorder.h \
slouken@0
     8
	../../../../include/SDL_cdrom.h \
slouken@0
     9
	../../../../include/SDL_copying.h \
slouken@0
    10
	../../../../include/SDL_endian.h \
slouken@0
    11
	../../../../include/SDL_error.h \
slouken@0
    12
	../../../../include/SDL_events.h \
slouken@0
    13
	../../../../include/SDL_getenv.h \
slouken@0
    14
	../../../../include/SDL_joystick.h \
slouken@0
    15
	../../../../include/SDL_keyboard.h \
slouken@0
    16
	../../../../include/SDL_keysym.h \
slouken@648
    17
	../../../../include/SDL_loadso.h \
slouken@0
    18
	../../../../include/SDL_mouse.h \
slouken@0
    19
	../../../../include/SDL_mutex.h \
slouken@0
    20
	../../../../include/SDL_quit.h \
slouken@0
    21
	../../../../include/SDL_rwops.h \
slouken@0
    22
	../../../../include/SDL_syswm.h \
slouken@0
    23
	../../../../include/SDL_thread.h \
slouken@0
    24
	../../../../include/SDL_timer.h \
slouken@0
    25
	../../../../include/SDL_types.h \
slouken@0
    26
	../../../../include/SDL_version.h \
slouken@0
    27
	../../../../include/SDL_video.h
slouken@0
    28
slouken@0
    29
slouken@0
    30
all: $(EXPORTS)
slouken@0
    31
slouken@0
    32
$(EXPORTS): $(HEADERS)
slouken@0
    33
	perl gendef.pl $(HEADERS) >$@ || rm $@
slouken@0
    34
slouken@0
    35
clean:
slouken@0
    36
	rm -f $(EXPORTS)