mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
36 lines
915 B
Makefile
36 lines
915 B
Makefile
CXX = g++
|
|
CC = gcc
|
|
AR = ar rcu
|
|
CXXFLAGS = -g -W -Wall -Ilua/include `sdl-config --cflags` -DUNIX # -O2
|
|
LDFLAGS = -g -W -Wall # -O2
|
|
LIBS = -Llua/lib -llua -llualib `sdl-config --libs` \
|
|
-lGL -lGLU -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 $@ $(OBJS) $(LIBS)
|
|
|
|
.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 *.o mixer\*.o *.d mixer\*.d *~
|
|
|
|
lua-clean:
|
|
$(MAKE) -C lua clean
|
|
|
|
-include $(DEPS)
|
|
|
|
.PHONY: lua-build lua-clean
|