20 lines
420 B
Makefile
20 lines
420 B
Makefile
# Simple makefile for now, we'll use something more complex if/when we need it
|
|
|
|
PROJECT=treewars
|
|
CXX=g++
|
|
CXXFLAGS=-DDEBUG -g `sdl-config --cflags`
|
|
LDFLAGS=`sdl-config --libs`
|
|
OBJECTS=\
|
|
main.o \
|
|
drawutils.o mathutils.o timer.o \
|
|
graph.o gamedata.o \
|
|
mainevent.o gamestate.o game.o titlescreen.o
|
|
|
|
all: $(PROJECT)
|
|
|
|
$(PROJECT): $(OBJECTS)
|
|
$(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ $(OBJECTS)
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) $(PROJECT)
|