29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
$OpenBSD: patch-makefiles_Makefile_openbsd,v 1.9 2010/04/24 20:18:39 naddy Exp $
|
|
--- makefiles/Makefile.openbsd.orig Sat Nov 22 06:03:39 2003
|
|
+++ makefiles/Makefile.openbsd Sat Oct 27 07:31:57 2007
|
|
@@ -1,6 +1,6 @@
|
|
# $Id: patch-makefiles_Makefile_openbsd,v 1.9 2010/04/24 20:18:39 naddy Exp $
|
|
-CC=cc
|
|
-AR=ar
|
|
+CC?=cc
|
|
+AR?=ar
|
|
|
|
# For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
|
|
#
|
|
@@ -10,9 +10,13 @@ AR=ar
|
|
# To test if the Motif library exports the runtime version
|
|
# add -DHAVE__XMVERSIONSTRING to CFLAGS
|
|
#
|
|
-CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
|
|
+LOCALBASE?=/usr/local
|
|
+X11BASE?=/usr/X11R6
|
|
+CFLAGS+=-I${X11BASE}/include -I${LOCALBASE}/include
|
|
+CFLAGS+=-DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DHAVE_MKSTEMP
|
|
ARFLAGS=-ur
|
|
-LIBS= -L/usr/X11R6/lib -lXm -lXpm -lXp -lXext -lXt -lSM -lICE -lX11 -lm
|
|
+MOTIFLIB?=-L${LOCALBASE} -lXm
|
|
+LIBS=-L${X11BASE}/lib ${MOTIFLIB} -lXft -lXpm -lXext -lXt -lSM -lICE -lX11 -lfontconfig -lfreetype -lexpat -lm -lXau -lXdmcp -lXrender -lXmu -lz -liconv
|
|
|
|
include Makefile.common
|
|
|