scummvm/Makefile.cross
Travis Howell e230b6b5af Update
2003-12-13 09:38:52 +00:00

43 lines
1.1 KiB
Makefile

CXX = i586-mingw32msvc-g++
SDL_CFLAGS=-I/usr/i586-mingw32msvc/include/SDL
SDL_LIBS=-L/usr/i586-mingw32msvc/lib -lSDL
CXXFLAGS = -W -Wall -Ilua/include $(SDL_CFLAGS) # -O2
LDFLAGS = -W -Wall # -O2
LIBS = -Llua/lib -llua -llualib -lmingw32 -lopengl32 -lglu32 -lgdi32 \
-Lmixer -lmixer $(SDL_LIBS)
OBJS = main.o lab.o bitmap.o model.o resource.o material.o debug.o \
textsplit.o lua.o registry.o localize.o scene.o engine.o actor.o \
sound.o timer.o keyframe.o costume.o walkplane.o textobject.o \
matrix3.o matrix4.o screen.o blocky16.o smush.o vima.o
DEPS = $(OBJS:.o=.d)
residual: $(OBJS) lua/lib/liblua.a lua/lib/liblualib.a mixer/libmixer.a
$(CXX) $(LDFLAGS) -o residual.exe $(OBJS) $(LIBS)
.cpp.o:
$(CXX) $(CXXFLAGS) -MMD -c $<
lua/lib/liblua.a lua/lib/liblualib.a: lua-build
mixer/libmixer.a: mixer-build
lua-build:
$(MAKE) -C lua
mixer-build:
$(MAKE) -C mixer
clean: lua-clean mixer-clean
-rm -f residual.exe *.o *.d *~
lua-clean:
$(MAKE) -C lua clean
mixer-clean:
$(MAKE) -C mixer clean
-include $(DEPS)
.PHONY: lua-build lua-clean mixer-build mixer-clean