summaryrefslogtreecommitdiff
path: root/devel/stormlib-ghost++/files/patch-Makefile
blob: 70d7ffe25c02d2b8c04dea8c9a461b33409fada7 (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
29
30
31
--- Makefile
+++ Makefile
@@ -19,12 +19,11 @@
 
 SHELL = /bin/sh
 SYSTEM = $(shell uname)
-C++ = g++
-CC = gcc
+C++ = $(CXX)
 DFLAGS = -D__SYS_ZLIB
 OFLAGS =
-LFLAGS = -lbz2 -lz
-CFLAGS = -fPIC
+LFLAGS += -lbz2 -lz
+CFLAGS += -fPIC
 CFLAGS += $(OFLAGS) $(DFLAGS)
 
 OBJS = SCommon.o SCompression.o SFileCompactArchive.o \
@@ -66,8 +65,7 @@
 all: $(LIB)
 
 install: $(LIB)
-	install $(LIB) /usr/local/lib
-	mkdir -p /usr/local/include/StormLib
-	cp StormLib.h /usr/local/include/StormLib
-	cp StormPort.h /usr/local/include/StormLib
-	ldconfig
+	install $(LIB) $(PREFIX)/lib
+	mkdir -p $(PREFIX)/include/StormLib
+	cp StormLib.h $(PREFIX)/include/StormLib
+	cp StormPort.h $(PREFIX)/include/StormLib