b36634437f
PATH_MAX and exists on all platforms.
30 lines
846 B
Text
30 lines
846 B
Text
$NetBSD: patch-ad,v 1.3 2006/01/04 23:18:08 joerg Exp $
|
|
|
|
--- src/client/Makefile.orig Wed Aug 30 08:59:29 2000
|
|
+++ src/client/Makefile Wed Dec 19 11:00:51 2001
|
|
@@ -4,7 +4,7 @@
|
|
#======================================================#
|
|
|
|
# PATHS
|
|
-X11_PATH = /usr/X11R6
|
|
+X11_PATH = ${X11BASE}
|
|
TOPLEVEL_PATH = ../..
|
|
COMMON_PATH = $(TOPLEVEL_PATH)/src/common
|
|
|
|
@@ -16,14 +16,14 @@ CC = gcc
|
|
BINARY = $(TOPLEVEL_PATH)/xtux
|
|
|
|
# Flags used when compiling
|
|
-CFLAGS = -g -Wall -O -DDATADIR=\"$(DATADIR)\"
|
|
+CFLAGS = -g -Wall -O -DDATADIR=\"$(DATADIR)\" -I$(PREFIX)/include
|
|
|
|
# Paths to header files
|
|
X11_INC = -I$(X11_PATH)/include
|
|
COMMON_INC = -I$(COMMON_PATH)
|
|
|
|
# Libraries used in linking
|
|
-X11LIB = -L$(X11_PATH)/lib -lX11
|
|
+X11LIB = -Wl,-R$(X11_PATH)/lib -L$(X11_PATH)/lib -Wl,-R$(PREFIX)/lib -L$(PREFIX)/lib -lX11
|
|
XPMLIB = -lXpm
|
|
MATHLIB = -lm
|
|
|