Source reconstructed at patch state 1 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
| 1 |
# game name |
| 2 |
GAME_NAME=alienblaster |
| 3 |
|
| 4 |
# the compiler to use |
| 5 |
COMPILER=g++ |
| 6 |
|
| 7 |
# include path |
| 8 |
INCLUDE_PATH=-I. |
| 9 |
|
| 10 |
#OPTIMIZATION=-g -pg -fprofile-arcs |
| 11 |
#OPTIMIZATION=-O3 |
| 12 |
OPTIMIZATION=-g |
| 13 |
#OPTIMIZATION= |
| 14 |
|
| 15 |
# SDL library |
| 16 |
SDL_LIBS=$(shell sdl-config --libs) |
| 17 |
SDL_FLAGS=$(shell sdl-config --cflags) |
| 18 |
|
| 19 |
# game flags |
| 20 |
GAME_FLAGS=-D_GNU_SOURCE -Wall -Winline -finline-functions $(SDL_FLAGS) $(OPTIMIZATION) |
| 21 |
GAME_LIBS=-lSDL_mixer $(SDL_LIBS) $(OPTIMIZATION) |
| 22 |
|
| 23 |
# all objectfiles |
| 24 |
OBJECT_FILES=main.o surfaceDB.o soundDB.o options.o geometry.o video.o game.o \ |
| 25 |
racer.o racers.o shots.o shot.o boundingBox.o items.o item.o font.o \ |
| 26 |
explosion.o explosions.o mixer.o enemys.o enemy.o wrecks.o wreck.o \ |
| 27 |
settings.o intro.o setDifficulty.o global.o formation.o infoscreen.o \ |
| 28 |
menuArcadeMode.o sonic.o banners.o banner.o smokePuff.o smokePuffs.o \ |
| 29 |
shieldGlow.o background.o input.o |
| 30 |
|
| 31 |
.PHONY: all game clean realclean rebuild tgz |
| 32 |
|
| 33 |
all: depend $(GAME_NAME) |
| 34 |
|
| 35 |
clean: |
| 36 |
rm -f *.o *.da |
| 37 |
|
| 38 |
realclean: |
| 39 |
rm -f *.o *.da *~ Makefile.dep |
| 40 |
|
| 41 |
rebuild: realclean game |
| 42 |
|
| 43 |
.SUFFIXES: .cc |
| 44 |
|
| 45 |
# How to compile a c++ programm |
| 46 |
$(GAME_NAME): $(OBJECT_FILES) |
| 47 |
@echo "" |
| 48 |
@echo "" |
| 49 |
@echo "Linking $@" |
| 50 |
@$(COMPILER) $(GAME_LIBS) -o $(GAME_NAME) $(OBJECT_FILES) |
| 51 |
mv $(GAME_NAME) ../ |
| 52 |
|
| 53 |
%.o: %.cc |
| 54 |
@echo "" |
| 55 |
@echo "" |
| 56 |
@echo "Compiling $<" |
| 57 |
@$(COMPILER) $(GAME_FLAGS) $(INCLUDE_PATH) -c $< -o $@ |
| 58 |
|
| 59 |
depend: dep |
| 60 |
|
| 61 |
dep: |
| 62 |
-touch Makefile.dep |
| 63 |
-makedepend $(INCLUDE_PATH) -Y -f Makefile.dep *.cc 2> /dev/null |
| 64 |
-rm -f Makefile.dep.bak |
| 65 |
|
| 66 |
-include Makefile.dep |