1
0
Fork 0
blockofighter/Makefile
Michaël Lemaire bf1f9192e5 Added several improvements from an old branch
* Added body rotation using hit button
* Added rotating decapitation camera
* Added slow motion on death
* Improved camera tracking
* Added motion blur
* Fixed several bugs
2015-06-03 15:36:33 +02:00

39 lines
858 B
Makefile

FMOD = yes
GFXFLAGS = `sdl-config --cflags`
GFXLIBS = `sdl-config --libs` -lGL -lGLU -lSDL_image
ifeq ($(FMOD), yes)
SNDFLAGS = -DAUDIO_FMOD=1
SNDLIBS = -lfmod-3.5
endif
CC = c++
CFLAGS = -I. -O3 $(GFXFLAGS) $(SNDFLAGS)
LIBS = $(GFXLIBS) $(SNDLIBS)
SRC = 3dutils.cpp appearance.cpp audio.cpp camera.cpp collision.cpp \
fight.cpp font.cpp glapi.cpp graphics.cpp legoblocks.cpp \
legoman.cpp light.cpp main.cpp material.cpp menu.cpp mesh.cpp \
object.cpp objectfactory.cpp particle.cpp run.cpp shape.cpp \
sphere.cpp texture.cpp utils.cpp vector.cpp world.cpp end.cpp \
fonct.cpp
OBJ = $(SRC:%.cpp=src/%.o)
all: blockofighter
clean:
rm -f $(OBJ) gmon.out
distclean: clean
rm -f blockofighter
blockofighter: $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ) $(LIBS)
%.o: %.cpp
$(CC) $(CFLAGS) -c -o $@ $<