forked from Lainports/freebsd-ports
- 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)
34 lines
782 B
Text
34 lines
782 B
Text
--- Makefile.orig Thu Feb 4 07:08:27 1993
|
|
+++ Makefile Sat Jan 29 02:12:57 2000
|
|
@@ -23,15 +23,15 @@
|
|
|
|
#
|
|
# Modify these to fit the compiler setup on your system.
|
|
-CC = gcc
|
|
-CFLAGS = -O2
|
|
-LIBS = -lX11 $(IXLIBS)
|
|
+CC ?= gcc
|
|
+CFLAGS += -I${LOCALBASE}/include
|
|
+LIBS += -L${LOCALBASE}/lib -lX11 $(IXLIBS)
|
|
|
|
#
|
|
# These specify where to install the binary
|
|
# and the manual.
|
|
-BINDIR = /usr/local/bin
|
|
-MANDIR = /usr/local/man/man1
|
|
+BINDIR = ${PREFIX}/bin
|
|
+MANDIR = ${PREFIX}/man/man1
|
|
MANEXT = 1
|
|
|
|
all: xdl
|
|
@@ -40,8 +40,8 @@
|
|
$(CC) $(CFLAGS) $(TIMER) $(BSDT) -o xdl xdl.c $(LIBS)
|
|
|
|
install: xdl xdl.man
|
|
- cp xdl $(BINDIR)
|
|
- cp xdl.man $(MANDIR)/xdl.$(MANEXT)
|
|
+ ${BSD_INSTALL_PROGRAM} xdl $(BINDIR)
|
|
+ ${BSD_INSTALL_MAN} xdl.man $(MANDIR)/xdl.$(MANEXT)
|
|
|
|
clean:
|
|
$(RM) xdl *.o *~ core
|