src/hermes/Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sun, 21 Sep 2003 18:32:04 +0000
changeset 720 f90d80d68071
parent 626 b98f732b4322
child 729 dac996d69abb
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
#
slouken@0
     3
# Some consistent rules for building asm files:
slouken@0
     4
slouken@0
     5
STRIP_FPIC = sh $(top_srcdir)/strip_fPIC.sh
slouken@0
     6
slouken@0
     7
SUFFIXES = .asm
slouken@0
     8
slouken@0
     9
.asm.lo:
slouken@626
    10
	$(LIBTOOL) --mode=compile $(STRIP_FPIC) $(NASM) @NASMFLAGS@ $< -o $*.o
slouken@0
    11
slouken@0
    12
###########################################################################
slouken@0
    13
slouken@0
    14
# The hermes library target
slouken@0
    15
noinst_LTLIBRARIES = libhermes.la
slouken@0
    16
slouken@0
    17
libhermes_la_SOURCES = $(PORTABLE_SRCS)
slouken@225
    18
am_libhermes_la_OBJECTS =	\
slouken@225
    19
	mmx_main.lo		\
slouken@225
    20
	mmxp2_32.lo		\
slouken@225
    21
	x86_main.lo		\
slouken@225
    22
	x86p_16.lo		\
slouken@225
    23
	x86p_32.lo
slouken@0
    24
slouken@0
    25
# The hermes library sources
slouken@0
    26
PORTABLE_SRCS = 		\
slouken@0
    27
	mmx_main.asm		\
slouken@0
    28
	mmxp2_32.asm		\
slouken@0
    29
	x86_main.asm		\
slouken@0
    30
	x86p_16.asm		\
slouken@0
    31
	x86p_32.asm		\
slouken@0
    32
	\
slouken@0
    33
	HeadMMX.h		\
slouken@0
    34
	HeadX86.h
slouken@0
    35
slouken@0
    36
EXTRA_DIST =			\
slouken@0
    37
	COPYING.LIB		\
slouken@0
    38
	README
slouken@0
    39