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`
|
|
|
|
LDFLAGS=`sdl-config --libs`
|
2011-06-29 01:38:18 +00:00
|
|
|
OBJECTS=drawutils.o game.o graph.o main.o mainevent.o mathutils.o gamedata.o gamestate.o
|
2011-06-23 13:38:15 +00:00
|
|
|
|
|
|
|
all: $(PROJECT)
|
|
|
|
|
|
|
|
$(PROJECT): $(OBJECTS)
|
|
|
|
$(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ $(OBJECTS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJECTS) $(PROJECT)
|