treewars/Makefile

21 lines
500 B
Makefile
Raw Permalink Normal View History

2011-06-23 13:38:15 +00:00
# Simple makefile for now, we'll use something more complex if/when we need it
PROJECT=treewars
2011-06-23 13:38:15 +00:00
CXX=g++
CXXFLAGS=-DDEBUG -g `sdl-config --cflags`
LDFLAGS=`sdl-config --libs` -lSDL_ttf
OBJECTS=\
main.o \
drawutils.o mathutils.o timer.o itos.o \
graph.o gamedata.o player.o vertex.o gamevertex.o \
entity.o menubutton.o label.o \
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)