| 1 |
CC=g++ |
| 2 |
CCFLAGS=-O2 -Wall |
| 3 |
CFILES=game.cpp gamestate.cpp gui.cpp image.cpp main.cpp panel.cpp player.cpp resources.cpp screen.cpp sector.cpp sound.cpp tutorial.cpp utils.cpp TinyXML/tinyxml.cpp TinyXML/tinyxmlerror.cpp TinyXML/tinyxmlparser.cpp |
| 4 |
HFILES=game.h gamestate.h gui.h image.h panel.h player.h resources.h screen.h sector.h sound.h tutorial.h utils.h common.h stdafx.h TinyXML/tinyxml.h |
| 5 |
OFILES=game.o gamestate.o gui.o image.o panel.o player.o resources.o screen.o sector.o sound.o tutorial.o utils.o main.o TinyXML/tinyxml.o TinyXML/tinyxmlerror.o TinyXML/tinyxmlparser.o |
| 6 |
APP=gigalomania |
| 7 |
INC=`sdl-config --cflags` |
| 8 |
LINKPATH=`sdl-config --libs` -L/usr/X11R6/lib/ -L/usr/lib |
| 9 |
|
| 10 |
LIBS=-lSDL_image -lSDL_mixer -ljpeg -lpng -lvorbisfile -lvorbis -logg -lSDL -lz |
| 11 |
|
| 12 |
all: $(APP) |
| 13 |
|
| 14 |
$(APP): $(OFILES) $(HFILES) $(CFILES) |
| 15 |
$(CC) $(OFILES) $(CCFLAGS) $(LINKPATH) $(LIBS) -o $(APP) |
| 16 |
|
| 17 |
.cpp.o: |
| 18 |
$(CC) $(CCFLAGS) -O2 $(INC) -c $< -o $@ |
| 19 |
|
| 20 |
clean: |
| 21 |
rm -rf *.o |
| 22 |
rm -f $(APP) |