summaryrefslogtreecommitdiffstats
path: root/astro/xglobe/files/patch-aa
blob: cc58d99650a7a7aca153af0d2f2f20deca099324 (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
32
33
34
35
36
37
38
39
40
41
42
--- Makefile.orig	Mon Apr 19 18:51:04 1999
+++ Makefile	Sat May  1 17:17:30 1999
@@ -4,29 +4,31 @@
 
 ####### Installation directory
 
-XGLOBE_DIR     = /usr/local
+XGLOBE_DIR     = $(PREFIX)
 XGLOBE_LIB_DIR = $(XGLOBE_DIR)/lib/xglobe
 XGLOBE_BIN_DIR = $(XGLOBE_DIR)/bin
 
 ####### Library directories - you may need to modify these
 
-X11_INCLUDE_DIR = /usr/X11R6/include
-QT_INCLUDE_DIR  = /usr/lib/qt/include
+X11_INCLUDE_DIR = $(X11BASE)/include
+QT_INCLUDE_DIR  = $(X11BASE)/share/include/X11/qt
 
-QT_LIB_DIR      = /usr/lib/qt/lib
-X11_LIB_DIR     = /usr/X11R6/lib
+QT_LIB_DIR      = $(X11BASE)/lib
+X11_LIB_DIR     = $(X11BASE)/lib
 
 
 ####### Compiler and tools
 
-CPP     = g++
-LINK    = g++
+CXX	?= g++
+CPP     = $(CXX)
+LINK    = $(CXX)
 MOC     = moc
 INSTALL = install
 
 ####### compile and link options
 
-CFLAGS       = $(INCLUDE_DIRS) -DXGLOBE_LIB_DIR=\"$(XGLOBE_LIB_DIR)\" -O2 -Wall
+CFLAGS       ?= -O2
+CFLAGS       += $(INCLUDE_DIRS) -DXGLOBE_LIB_DIR=\"$(XGLOBE_LIB_DIR)\" -Wall
 
 LFLAGS       =
 
OpenPOWER on IntegriCloud