2011-06-23 13:38:15 +00:00
|
|
|
# Simple makefile for now, we'll use something more complex if/when we need it
|
|
|
|
|
2011-06-29 01:21:31 +00:00
|
|
|
PROJECT=treewars
|
2011-06-23 13:38:15 +00:00
|
|
|
CXX=g++
|
2011-06-24 13:53:44 +00:00
|
|
|
CXXFLAGS=-DDEBUG -g `sdl-config --cflags`
|
2011-07-01 17:15:30 +00:00
|
|
|
LDFLAGS=`sdl-config --libs` -lSDL_ttf
|
2011-07-01 15:40:38 +00:00
|
|
|
OBJECTS=\
|
|
|
|
main.o \
|
2011-07-01 17:15:30 +00:00
|
|
|
drawutils.o mathutils.o timer.o itos.o \
|
2011-07-03 20:37:07 +00:00
|
|
|
graph.o gamedata.o player.o vertex.o gamevertex.o \
|
2011-07-06 18:24:37 +00:00
|
|
|
entity.o menubutton.o \
|
2011-07-01 15:40:38 +00:00
|
|
|
mainevent.o gamestate.o game.o titlescreen.o
|
2011-06-23 13:38:15 +00:00
|
|
|
|
|
|
|
all: $(PROJECT)
|
|
|
|
|
|
|
|
$(PROJECT): $(OBJECTS)
|
|
|
|
$(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ $(OBJECTS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJECTS) $(PROJECT)
|