blob: e9fb838826ec8ee84fd7f33b5f041910e97c0778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- a/Makefile
+++ b/Makefile
@@ -6,12 +6,11 @@
# James Gregory and Everton da Silva Marques <evertonsm@yahoo.com.br>
#
-INSTALL_DIR=/usr/local/share
-INSTALL_BIN_DIR=/usr/local/bin
+INSTALL_DIR="${GAMES_DATADIR}"
+INSTALL_BIN_DIR="${GAMES_BINDIR}"
-CXX = g++
-CXXFLAGS = $(shell sdl-config --cflags) -O3
-LDFLAGS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lboost_filesystem
+CXXFLAGS += $(shell sdl-config --cflags)
+LDLIBS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lboost_filesystem -lboost_system -lm
OBJS = AIInterpreter.o AutoFireUnit.o BCCompiler.o DerivedGroups.o DragWindow.o \
ForceSelect.o ForceSelectWin.o GenWindow.o GenWindow_Base.o GFX.o Globals.o \
@@ -40,7 +39,7 @@
install $(TARGET) $(INSTALL_BIN_DIR)
$(TARGET): $(OBJS)
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
|