freebsd-ports/sysutils/disktool/files/patch-Makefile
Oliver Lehmann c1ce862de2 Add disktool 2.0,
xView sysadmin tool for monitoring diskfull
situations.

PR:		52495
Submitted by:	Serge Gagnon <gagnon__s@videotron.ca>
2003-07-23 17:00:33 +00:00

34 lines
682 B
Text

--- Makefile.orig Sat Apr 18 00:27:18 1998
+++ Makefile Wed Jul 23 18:52:34 2003
@@ -31,14 +31,15 @@
#
# FreeBSD(tested on 2.2.1) uncomment the next 2 lines
#
-#OPENWINHOME = /usr/X11R6
-#AUX_CFLAGS = -DFBSD
+PREFIX = %%PREFIX%%
+OPENWINHOME = $(PREFIX)
+AUX_CFLAGS = -DFBSD
#
# End of Configurable stuff
#
# =============================================
#
-CC = gcc
+CC?= cc
#
OBJS = disktool.o
@@ -46,10 +47,10 @@
INCLUDE = -I${OPENWINHOME}/include ${XINCLUDES}
-CFLAGS = ${INCLUDE} -c
+CFLAGS+= ${INCLUDE} -c
# Change -O to -g for debugging purposes
-LDFLAGS = -pipe -O3 -m486
+LDFLAGS?= -pipe -O3
XVIEW_LIBS = -L${OPENWINHOME}/lib \