blob: 3789bfce2ff1a6e372e8c95fcfd63180e106ea10 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
$NetBSD: patch-aa,v 1.7 2012/01/29 21:05:53 marino Exp $
--- Makefile.orig 2005-01-16 20:25:50.000000000 +0100
+++ Makefile
@@ -12,7 +12,7 @@
# (The wxWindows file locations should really be taken from wx-config.)
HUGOSOURCEDIR = ../source
MIKMODINCLUDEDIR = /usr/local/include
-CXXINCLUDEDIR = /usr/include/g++-3
+#CXXINCLUDEDIR = /usr/include/g++-3
# Libraries to be linked:
# If a working libmikmod.so has been compiled on the runtime system
@@ -23,7 +23,7 @@
# Uncomment the following if compiling with GTK 1.2 support:
#LDFLAGS = `wx-config --libs` -lgtk -lgdk -lmikmod
# Uncomment the following if compiling with GTK 2 support:
-LDFLAGS = `wx-config --libs` -lgtk-x11-2.0 -lgdk-x11-2.0 -lmikmod
+LDFLAGS = `wx24-config --libs` -lmikmod -lstdc++
# Use these LDFLAGS and STATICLIBS for static building:
#STATICLIBS = /usr/local/lib/libmikmod.a /usr/local/lib/libwx_gtk2-2.4.a
@@ -39,7 +39,7 @@
# Uncomment the following if compiling with GTK 1.2 support:
#SEARCHDIRS := -I- -I${MYCODEDIR} -I${HUGOSOURCEDIR} -I${MIKMODINCLUDEDIR} -I${CXXINCLUDEDIR}
# Uncomment the following if compiling with GTK 2 support:
-SEARCHDIRS := -I- -I${MYCODEDIR} -I${HUGOSOURCEDIR} -I${MIKMODINCLUDEDIR} -I${CXXINCLUDEDIR} -I/usr/include/gtk-2.0
+SEARCHDIRS := -I${MYCODEDIR} -I${HUGOSOURCEDIR} -I${MIKMODINCLUDEDIR}
# Hopefully nothing below here will need to be changed:
@@ -52,17 +52,19 @@
# C
-CC := gcc
+#CC := gcc
# Debugging:
#CFLAGS = ${DEPENDFLAGS} -D__WXGTK__ -DWXWINDOWS -DNO_WXCARET -g3 -Wall `wx-config --cflags`
# Release build:
-CFLAGS = ${DEPENDFLAGS} -D__WXGTK__ -DWXWINDOWS -DNO_WXCARET -O2 -Wall `wx-config --cflags`
+CPPFLAGS+=${DEPENDFLAGS} -D__WXGTK__ -DWXWINDOWS -DNO_WXCARET
+HUGO_CFLAGS=-O2 -Wall `wx24-config --cflags`
+CFLAGS += ${HUGO_CFLAGS}
# C++
-CXX := g++
+#CXX := g++
#CXXFLAGS = ${DEPENDFLAGS}
-CXXFLAGS = ${CFLAGS} -fno-rtti
+CXXFLAGS += ${HUGO_CFLAGS} -fno-rtti
%.o : %.cpp
${CXX} ${CPPFLAGS} -c $< ${CXXFLAGS}
@@ -72,7 +74,7 @@
# C preprocessor
-CPPFLAGS =
+#CPPFLAGS =
# linker
|