blob: 116544faf4b4e50b5cd50def1ea30e061192ea2d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
--- 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
|