blob: 7d55dfe7c4fa28037b038dd7b68ba66aab81eec1 (
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
|
$NetBSD: patch-aa,v 1.3 2010/07/10 11:26:32 obache Exp $
--- Makefile.orig 2009-09-08 22:14:56.000000000 +0000
+++ Makefile
@@ -78,7 +78,7 @@ EXEDIR = ../exe
# The next two assignments are the invocations of the compiler
#
# This one specifies the "cc" C compiler
-CC = cc
+#CC = cc
#
# To use GCC instead:
#CC = gcc
@@ -97,7 +97,7 @@ CC = cc
#CFLAGS = -g
#
# An optimized one for gcc
-CFLAGS = -O3 -fomit-frame-pointer
+#CFLAGS = -O3 -fomit-frame-pointer
#
# For some serious debugging using Gnu gcc
#
@@ -128,7 +128,7 @@ CFLAGS = -O3 -fomit-frame-pointer
# use the corresponding value for $(DLIBS). If the Xlib library
# for the X windowing system is somewhere unexpected, you may have
# to change the path /usr/X11R6/lib in this one.
-DFLAGS = $(CFLAGS) -DX -I/usr/X11R6/include
+DFLAGS = $(CFLAGS) -DX -I${X11BASE}/include
#
# ----------------------------------------------------------------------------
#
@@ -149,7 +149,7 @@ LIBS = -lm
# to change the path /usr/X11R6/lib in this one. If you use this
# value for $(DLIBS), you should also use the corresponding value
# for $(DFLAGS)
-DLIBS= $(LIBS) -L/usr/X11R6/lib/ -lX11 -lXaw -lXt
+DLIBS= $(LIBS) ${X11_LDFLAGS} -lX11 -lXaw -lXt
#
# ----------------------------------------------------------------------------
# (After this point there should not be any reason to change anything)
|