Cross-compiler problems!

I?m using GNUmake for my makefiles. When I compile my program for Linux,
everything works well, but when I use the mingw32-compiler then I have
two problems:

1:
make: *** No rule to make target libmixer.a', needed bybumprace.exe’. Stop.

2:
i686-pc-mingw32-gcc: cannot specify -o with -c and multiple compilations

Here is my windows makefile:

TARGET =
bumprace
USEMATH =
true
MIXER =
./mixer/
target =
win32
HDRS =
/usr/win32/include/SDL
LIBS = -L/usr/win32/lib -lSDL -L$(MIXER)
-lmixer
CC =
/usr/win32/bin/i686-pc-mingw32-gcc
HDIRS =
-I$(MIXER)
SUBDIRS =
$(MIXER)

include
GNUmake

$(TARGET) : bumprace.o readGIF.o bitfont.o

$(MIXER)libmixer.a

Bye, Karl.

I?m using GNUmake for my makefiles. When I compile my program for Linux,
everything works well, but when I use the mingw32-compiler then I have
two problems:

1:
make: *** No rule to make target libmixer.a', needed bybumprace.exe’. Stop.

You probably need to recompile the mixer library with the cross-compiler.
Just type ‘make target=win32’ and that should do it, presuming the right
cross-compiler is $(CC)

2:
i686-pc-mingw32-gcc: cannot specify -o with -c and multiple compilations

??

Good luck!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

I?m using GNUmake for my makefiles. When I compile my program for Linux,
everything works well, but when I use the mingw32-compiler then I have
two problems:

1:
make: *** No rule to make target libmixer.a', needed bybumprace.exe’. Stop.

You probably need to recompile the mixer library with the cross-compiler.
Just type ‘make target=win32’ and that should do it, presuming the right
cross-compiler is $(CC)

Thanks!
Now I?ve got it! It?s target=win32 and CC=cross-compiler AND
RANLIB=cross-ranlib