69 lines
1.8 KiB
Text
69 lines
1.8 KiB
Text
--- src-stormbaancoureur/Makefile.orig 2008-06-11 18:12:01.000000000 +0400
|
|
+++ src-stormbaancoureur/Makefile 2013-09-30 06:14:07.576519380 +0400
|
|
@@ -5,23 +5,20 @@
|
|
GLPREFIX=/usr
|
|
PLIBPREFIX=/usr
|
|
ODEPREFIX=/usr
|
|
-CXX=g++
|
|
+CXX?=g++
|
|
LIBDIRNAME=lib
|
|
|
|
# END OF CUSTOM SETTINGS
|
|
|
|
-CXXFLAGS=\
|
|
- -I$(GLPREFIX)/include \
|
|
- -I$(ODEPREFIX)/include \
|
|
- -I$(PLIBPREFIX)/include \
|
|
+CXXFLAGS+=\
|
|
+ -I$(LOCALBASE)/include \
|
|
-I../src-common \
|
|
-I. \
|
|
-DGAMEVERSION=$(VERSION) \
|
|
- -O2 -g -Wall
|
|
+ -g -Wall
|
|
|
|
LFLAGS=\
|
|
- -L$(PLIBPREFIX)/$(LIBDIRNAME) \
|
|
- -L/usr/X11R6/$(LIBDIRNAME)
|
|
+ -L$(LOCALBASE)/lib
|
|
|
|
|
|
OBJS=\
|
|
@@ -39,15 +36,15 @@
|
|
|
|
|
|
LIBS=\
|
|
- $(ODEPREFIX)/$(LIBDIRNAME)/libode.a \
|
|
+ $(LOCALBASE)/lib/libode.a \
|
|
-lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul \
|
|
- -lglut -lGLU -lGL -lasound
|
|
+ -lglut -lGLU -lGL
|
|
|
|
|
|
all: stormbaancoureur
|
|
|
|
|
|
-stormbaancoureur: $(OBJS) $(ODEPREFIX)/$(LIBDIRNAME)/libode.a
|
|
+stormbaancoureur: $(OBJS)
|
|
$(CXX) -o stormbaancoureur $(OBJS) $(LFLAGS) $(LIBS)
|
|
|
|
staticworldobject.o: ../src-common/staticworldobject.cxx ../src-common/staticworldobject.h ../src-common/worldobject.h
|
|
@@ -92,16 +89,15 @@
|
|
clean:
|
|
rm -f *.o stormbaancoureur
|
|
|
|
-GAMEDIR=$(DESTDIR)/usr/share/games/stormbaancoureur
|
|
+GAMEDIR=$(DESTDIR)$(PREFIX)/share/stormbaancoureur
|
|
install: stormbaancoureur
|
|
# Directories
|
|
- mkdir -p $(DESTDIR)/usr/games/
|
|
mkdir -p $(GAMEDIR)/images/
|
|
mkdir -p $(GAMEDIR)/sounds/
|
|
mkdir -p $(GAMEDIR)/shaders/
|
|
mkdir -p $(GAMEDIR)/models/
|
|
# Binary
|
|
- install stormbaancoureur $(DESTDIR)/usr/games/stormbaancoureur
|
|
+ install stormbaancoureur $(DESTDIR)$(PREFIX)/bin/stormbaancoureur
|
|
# Images
|
|
install -m 644 images/info_carpet_smooth.rgb $(GAMEDIR)/images/info_carpet_smooth.rgb
|
|
install -m 644 images/info_door_smooth.rgb $(GAMEDIR)/images/info_door_smooth.rgb
|