scummvm/Makefile.cross
2004-02-22 07:58:58 +00:00

38 lines
1.0 KiB
Makefile

### Modify these paths if needed
SDL_CFLAGS=-I/usr/i586-mingw32msvc/include/SDL
SDL_LIBS=-L/usr/i586-mingw32msvc/lib -lSDL
CXX = i586-mingw32msvc-g++
CXXFLAGS = -W -Wall -Ilua/include $(SDL_CFLAGS) # -O2
LDFLAGS = -W -Wall # -O2
LIBS = -Llua/lib -llua -llualib -lmingw32 -lopengl32 -lglu32 -lgdi32 \
$(SDL_LIBS) -lz
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 driver_gl.o \
mixer/mixer.o mixer/rate.o mixer/audiostream.o
DEPS = $(OBJS:.o=.d)
residual: $(OBJS) lua/lib/liblua.a lua/lib/liblualib.a
$(CXX) $(LDFLAGS) -o residual.exe $(OBJS) $(LIBS)
strip residual.exe
.cpp.o:
$(CXX) $(CXXFLAGS) -MMD -c $(<) -o $*.o
lua/lib/liblua.a lua/lib/liblualib.a: lua-build
lua-build:
$(MAKE) -C lua
clean: lua-clean
-rm -f residual.exe *.o mixer\*.o *.d mixer\*.d *~
lua-clean:
$(MAKE) -C lua clean
-include $(DEPS)
.PHONY: lua-build lua-clean