SDL with automake 1.5/autoconf 2.52 and nasm

Hi -

I’ve found a problem with the src/hermes Makefile.am when you have
automake 1.5, autoconf 2.52 and nasm installed. For some reason,
automake doesn’t seem to recognize the .asm -> .lo relationship.

Here’s the patch:
*** Makefile.am 2001/07/31 19:32:28 1.1
Makefile.am 2001/10/24 23:24:31 1.2***************
*** 14,20 ****

The hermes library target

noinst_LTLIBRARIES = libhermes.la

! libhermes_la_SOURCES = $(PORTABLE_SRCS)

The hermes library sources

PORTABLE_SRCS =
— 14,28 ----

The hermes library target

noinst_LTLIBRARIES = libhermes.la

! EXTRA_libhermes_la_SOURCES = $(PORTABLE_SRCS)
! libhermes_la_LIBADD =
! mmx_main.lo
! mmxp2_32.lo
! x86_main.lo
! x86p_16.lo
! x86p_32.lo
!
! libhermes_la_SOURCES =

The hermes library sources

PORTABLE_SRCS = \

Hi -

I’ve found a problem with the src/hermes Makefile.am when you have
automake 1.5, autoconf 2.52 and nasm installed. For some reason,
automake doesn’t seem to recognize the .asm -> .lo relationship.

hrm - I posted a working Makefile.am a wee bit ago - wonder why it wasn’t
fixed?
As a cute bit you took a different route, so here I am posting your fix +
mine. And both work AFAIK g. I wonder - would either cause a prob with
automake pre-1.5/autoconf pre-2.5

Here’s the patch:
*** Makefile.am 2001/07/31 19:32:28 1.1
Makefile.am 2001/10/24 23:24:31 1.2


*** 14,20 ****

The hermes library target

noinst_LTLIBRARIES = libhermes.la

! libhermes_la_SOURCES = $(PORTABLE_SRCS)

The hermes library sources

PORTABLE_SRCS =
— 14,28 ----

The hermes library target

noinst_LTLIBRARIES = libhermes.la

! EXTRA_libhermes_la_SOURCES = $(PORTABLE_SRCS)
! libhermes_la_LIBADD =
! mmx_main.lo
! mmxp2_32.lo
! x86_main.lo
! x86p_16.lo
! x86p_32.lo
!
! libhermes_la_SOURCES =

The hermes library sources

PORTABLE_SRCS = \

my Makefile.am:On Thu, 25 Oct 2001, Bill May wrote:

###########################################################################

Some consistent rules for building asm files:

STRIP_FPIC = sh $(top_srcdir)/strip_fPIC.sh

SUFFIXES = .asm

.asm.lo:
$(LIBTOOL) --mode=compile $(STRIP_FPIC) $(NASM) @NASMFLAGS@ $<

###########################################################################

The hermes library target

noinst_LTLIBRARIES = libhermes.la

libhermes_la_SOURCES = $(PORTABLE_SRCS)
am_libhermes_la_OBJECTS =
mmx_main.lo
mmxp2_32.lo
x86_main.lo
x86p_16.lo
x86p_32.lo

The hermes library sources

PORTABLE_SRCS =
mmx_main.asm
mmxp2_32.asm
x86_main.asm
x86p_16.asm
x86p_32.asm

HeadMMX.h
HeadX86.h

EXTRA_DIST =
COPYING.LIB
README


May all your dreams be satisfying ones!

G’day, eh? :slight_smile:
- Teunis Peters

I’ve tried mine with automake 1.4 and it seems to work fine on
all my machines.

I’m not sure where I found that patch - it might have been on
one of the automake mail archives. It was found when initially
researching why an automake conditional wouldn’t compile correctly

Bill May
http://www.mpeg4ip.net

winterlion wrote:> On Thu, 25 Oct 2001, Bill May wrote:

Hi -

I’ve found a problem with the src/hermes Makefile.am when you have
automake 1.5, autoconf 2.52 and nasm installed. For some reason,
automake doesn’t seem to recognize the .asm -> .lo relationship.

hrm - I posted a working Makefile.am a wee bit ago - wonder why it wasn’t
fixed?
As a cute bit you took a different route, so here I am posting your fix +
mine. And both work AFAIK g. I wonder - would either cause a prob with
automake pre-1.5/autoconf pre-2.5

Here’s the patch:
*** Makefile.am 2001/07/31 19:32:28 1.1
Makefile.am 2001/10/24 23:24:31 1.2


*** 14,20 ****

The hermes library target

noinst_LTLIBRARIES = libhermes.la

! libhermes_la_SOURCES = $(PORTABLE_SRCS)

The hermes library sources

PORTABLE_SRCS =
— 14,28 ----

The hermes library target

noinst_LTLIBRARIES = libhermes.la

! EXTRA_libhermes_la_SOURCES = $(PORTABLE_SRCS)
! libhermes_la_LIBADD =
! mmx_main.lo
! mmxp2_32.lo
! x86_main.lo
! x86p_16.lo
! x86p_32.lo
!
! libhermes_la_SOURCES =

The hermes library sources

PORTABLE_SRCS = \

my Makefile.am:

###########################################################################

Some consistent rules for building asm files:

STRIP_FPIC = sh $(top_srcdir)/strip_fPIC.sh

SUFFIXES = .asm

.asm.lo:
$(LIBTOOL) --mode=compile $(STRIP_FPIC) $(NASM) @NASMFLAGS@ $<

###########################################################################

The hermes library target

noinst_LTLIBRARIES = libhermes.la

libhermes_la_SOURCES = $(PORTABLE_SRCS)
am_libhermes_la_OBJECTS =
mmx_main.lo
mmxp2_32.lo
x86_main.lo
x86p_16.lo
x86p_32.lo

The hermes library sources

PORTABLE_SRCS =
mmx_main.asm
mmxp2_32.asm
x86_main.asm
x86p_16.asm
x86p_32.asm

HeadMMX.h
HeadX86.h

EXTRA_DIST =
COPYING.LIB
README

hrm - I posted a working Makefile.am a wee bit ago - wonder why it wasn’t
fixed?

Thanks! Your patch is now in CVS.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment