mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# Where is scummvm will be installed
|
|
RESIDUALPATH=C:/residual
|
|
|
|
### Modify these paths
|
|
SDL_CFLAGS=-I$(SRC)sdl/include
|
|
SDL_LIBS=-L$(SRC)sdl/lib -lSDL
|
|
|
|
CXX = g++
|
|
CXXFLAGS = -g -W -Wall -Ilua/include $(SDL_CFLAGS) # -O2
|
|
LDFLAGS = -g -W -Wall # -O2
|
|
LIBS = -Llua/lib -llua -llualib -lmingw32 -lopengl32 -lglu32 $(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 mixer.o keyframe.o costume.o walkplane.o textobject.o
|
|
DEPS = $(OBJS:.o=.d)
|
|
EXEEXT =.exe
|
|
|
|
residual: $(OBJS) lua/lib/liblua.a lua/lib/liblualib.a
|
|
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
|
|
|
.cpp.o:
|
|
$(CXX) $(CXXFLAGS) -MMD -c $<
|
|
|
|
lua/lib/liblua.a lua/lib/liblualib.a: lua-build
|
|
|
|
lua-build:
|
|
$(MAKE) -C lua
|
|
|
|
clean: lua-clean
|
|
-rm -f residual *.o *.d *~
|
|
|
|
lua-clean:
|
|
$(MAKE) -C lua clean
|
|
|
|
-include $(DEPS)
|
|
|
|
.PHONY: lua-build lua-clean
|
|
|
|
# Some additional targets
|
|
install: residual$(EXEEXT)
|
|
mkdir -p $(RESIDUALPATH)
|
|
strip residual$(EXEEXT) -o $(RESIDUALPATH)/residual$(EXEEXT)
|
|
|
|
dist: install
|
|
cp README $(RESIDUALPATH)/readme.txt
|
|
cp SDL/README-SDL.txt $(RESIDUALPATH)
|
|
cp SDL/lib/SDL.dll $(RESIDUALPATH)
|
|
u2d $(RESIDUALPATH)/*.txt
|