* Add a ''very'' simple Makefile for compiling PieToaster

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2606 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-10-24 13:29:35 +00:00
parent b2a7dd1347
commit 0bb24b12c2
1 changed files with 30 additions and 0 deletions

30
tools/pietoaster/Makefile Normal file
View File

@ -0,0 +1,30 @@
CXX=g++
CFLAGS=-g
CXXFLAGS=
CPPFLAGS=
SOURCES=game_io.cpp \
imd.cpp \
imdloader.cpp \
pie_internal.cpp \
pietoaster.cpp \
png_util.cpp \
resmaster.cpp \
screen.cpp \
texture.cpp \
texture_mapper.cpp
OBJECTFILES=$(SOURCES:%.cpp=%.o)
all: pietoaster
clean:
-rm $(OBJECTFILES) pietoaster
pietoaster: $(OBJECTFILES)
$(CXX) -o $@ $^ -lSDL_image -lSDL -lpng -lphysfs -lGLU -lGL -lAntTweakBar
%.o: %.cpp
$(CXX) $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
.PHONY: all clean