forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
excido-0.1.5c-build.patch
29 lines (24 loc) · 1 KB
/
excido-0.1.5c-build.patch
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
29
--- Makefile
+++ Makefile
@@ -1,8 +1,8 @@
-CC=g++
-CFLAGS=`sdl-config --cflags` #-g -Wall #-O2
+CXX?=g++
+CXXFLAGS+=$(shell sdl-config --cflags) #-g -Wall #-O2
#CFLAGS=`sdl-config --cflags` -I./physfs#-g -Wall #-O2
OBJS := ${patsubst %.cpp, %.o, ${wildcard src/*.cpp}}
-LIBS = -s -Bstatic `sdl-config --static-libs` -lSDL_image -lSDL_ttf -L. -lphysfs -lopenal -Bdynamic -lGL -lGLU
+LIBS = $(shell sdl-config --libs) -lSDL_image -lSDL_ttf -lphysfs -lopenal -lalut -lGL -lGLU
#LIBS = -s -Bstatic `sdl-config --static-libs` SDL_image/*.o SDL_ttf/*.o -L. physfs/*.o openal/*.o -ljpeg -lpng -ltiff -lfreetype -Bdynamic -lGL -lGLU
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin/
@@ -16,12 +16,12 @@
.cpp.o:
- $(CC) $(CFLAGS) $(DEFINES) -o ${patsubst %.cpp, %.o, $<} -c $<
+ $(CXX) $(CXXFLAGS) $(DEFINES) -o ${patsubst %.cpp, %.o, $<} -c $<
all: $(TARGET)
$(TARGET): $(OBJS)
- $(CC) $(CFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
clean:
rm -f $(OBJS) $(TARGET)