I'm trying to properly compile SDL 1.2.2 using
automake (GNU automake) 1.5
autoconf (GNU Autoconf) 2.52
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
(all am/ac/lt files are regenerated)
Now in src/hermes/Makefile.am I have:
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
# The hermes library sources
libhermes_la_SOURCES = \
mmx_main.asm \
mmxp2_32.asm \
x86_main.asm \
x86p_16.asm \
x86p_32.asm \
\
HeadMMX.h \
HeadX86.h
EXTRA_DIST = \
COPYING.LIB \
README
[misiek@arm hermes]$ make clean all
rm -rf .libs _libs
test -z "libhermes.la" || rm -f libhermes.la
rm -f *.o core *.core
rm -f *.lo
/bin/sh ../../libtool --mode=link gcc2 -O2 -march=i686 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DUSE_ASMBLIT -I./hermes -I../../src/hermes -DOSS_SUPPORT
-DALSA_SUPPORT -DARTSC_SUPPORT -I/usr/X11R6/include/artsc -DESD_SUPPORT
-I/usr/X11R6/include -DENABLE_X11 -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE
-DDEFAULT_DGAMOUSE -DXFREE86_XV -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -D_REENTRANT
-DSDL_USE_PTHREADS -I../../include -I../../include/SDL -I../../src -I../../src/linux
-I../../src/main -I../../src/audio -I../../src/video -I../../src/events
-I../../src/joystick -I../../src/cdrom -I../../src/thread -I../../src/timer
-I../../src/endian -I../../src/file -s -o libhermes.la
mkdir .libs
rm -fr .libs/libhermes.la .libs/libhermes.* .libs/libhermes.*
ar cru .libs/libhermes.al
ranlib .libs/libhermes.al
creating libhermes.la
(cd .libs && rm -f libhermes.la && ln -s ../libhermes.la libhermes.la)
[misiek@arm hermes]$
As you can see asm files are not processed! I've searched autoconf
info file for information about SUFFIXES changes and such thing and I
found nothing so this should work.
Any hints? (btw. it was working fine with older automake)
ps. in verbose mode:
automake: reading src/hermes/Makefile.am
Sources ending in .asm become .lo
automake: reading /usr/share/automake/am/libtool.am
Also manual make of lo objects works:
[misiek@arm hermes]$ make mmx_main.lo
/bin/sh ../../libtool --mode=compile sh ../../strip_fPIC.sh /usr/bin/nasm -f elf
mmx_main.asm
mkdir .libs
sh ../../strip_fPIC.sh /usr/bin/nasm -f elf mmx_main.asm -fPIC -DPIC -o
.libs/mmx_main.lo
/usr/bin/nasm -f elf mmx_main.asm -o .libs/mmx_main.lo
mv -f .libs/mmx_main.lo mmx_main.o
(cd . && ln -s mmx_main.o mmx_main.lo)
[misiek@arm hermes]$
--
Arkadiusz Miśkiewicz IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr