mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
CXX = g++
|
|
CC = gcc
|
|
AR = ar rcu
|
|
CXXFLAGS = -g -W -Wall -Ilua/include `sdl-config --cflags` -DUNIX \
|
|
-Wno-multichar # -O2
|
|
LDFLAGS = -g -W -Wall # -O2
|
|
LIBS = -Llua/lib -llua -llualib `sdl-config --libs` -lz
|
|
|
|
LIBS += -lGL -lGLU
|
|
|
|
# For OSX use these instead of -lGL and -lGLU
|
|
#LIBS += -framework OpenGL -framework GLUT
|
|
#CXXFLAGS += -DOSX
|
|
|
|
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 \
|
|
objectstate.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
|