2007-10-24 06:29:35 -07:00
|
|
|
CXX=g++
|
2007-12-24 14:11:18 -08:00
|
|
|
CXXFLAGS=-g
|
|
|
|
CPPFLAGS=-I/usr/include/SDL
|
|
|
|
LDFLAGS=
|
|
|
|
LIBS=-lSDL_image -lSDL -lGLU -lGL -lAntTweakBar
|
2007-10-24 06:29:35 -07:00
|
|
|
|
2007-12-24 14:11:18 -08:00
|
|
|
SOURCES= \
|
|
|
|
game_io.cpp \
|
|
|
|
gui.cpp \
|
2007-10-24 06:29:35 -07:00
|
|
|
imd.cpp \
|
|
|
|
imdloader.cpp \
|
|
|
|
pie_internal.cpp \
|
|
|
|
pietoaster.cpp \
|
|
|
|
resmaster.cpp \
|
|
|
|
screen.cpp \
|
|
|
|
texture.cpp \
|
|
|
|
texture_mapper.cpp
|
|
|
|
|
|
|
|
OBJECTFILES=$(SOURCES:%.cpp=%.o)
|
|
|
|
|
|
|
|
all: pietoaster
|
|
|
|
|
|
|
|
clean:
|
2007-10-24 07:14:18 -07:00
|
|
|
-rm -f $(OBJECTFILES) pietoaster
|
2007-10-24 06:29:35 -07:00
|
|
|
|
|
|
|
pietoaster: $(OBJECTFILES)
|
2007-12-24 14:11:18 -08:00
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
|
2007-10-24 06:29:35 -07:00
|
|
|
|
|
|
|
%.o: %.cpp
|
2007-12-24 14:11:18 -08:00
|
|
|
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
|
2007-10-24 06:29:35 -07:00
|
|
|
|
|
|
|
.PHONY: all clean
|