3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
29 lines
713 B
Text
29 lines
713 B
Text
--- Makefile.orig Mon Oct 18 06:25:17 1999
|
|
+++ Makefile Fri Aug 6 17:40:19 2004
|
|
@@ -1,12 +1,12 @@
|
|
-INCDIR = -I/usr/X11R6/include
|
|
-LIBDIR = -L/usr/X11R6/lib
|
|
+INCDIR = -I${LOCALBASE}/include
|
|
+LIBDIR = -L${LOCALBASE}/lib
|
|
LIBS = -lXpm -lXext -lX11
|
|
OBJS = br_cmd.o wmx10.o ../wmgeneral/wmgeneral.o
|
|
-CFLAGS = -D$(shell echo `uname -s`) #-DDEBUG
|
|
-CC = gcc
|
|
+CFLAGS += -D$(shell echo `uname -s`) #-DDEBUG
|
|
+CC ?= gcc
|
|
|
|
.c.o:
|
|
- $(CC) -c -O2 -Wall $(CFLAGS) $< -o $*.o $(INCDIR)
|
|
+ $(CC) -c $(CFLAGS) $< -o $*.o $(INCDIR)
|
|
|
|
all: wmx10
|
|
|
|
@@ -19,6 +19,5 @@
|
|
done
|
|
rm -f wmx10 *~
|
|
|
|
-install:
|
|
- strip wmx10
|
|
- mv wmx10 /usr/local/bin
|
|
+install: wmx10
|
|
+ ${BSD_INSTALL_PROGRAM} wmx10 ${LOCALBASE}/bin
|