blob: 4c2d25790feea449e1c633a11788dd9fba0c9822 (
plain)
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
35
|
$NetBSD: patch-ab,v 1.2 2009/07/07 18:07:11 joerg Exp $
--- Makefile.orig 2003-02-25 22:21:15.000000000 +0100
+++ Makefile
@@ -5,7 +5,7 @@
PROG = ratmen
-PREFIX=/usr/local
+#PREFIX=/usr/local
MANDIR=$(PREFIX)/man
OPTIMIZE ?= -Os
@@ -13,11 +13,11 @@ DEBUG ?=
WARN ?= -Wall -ansi -pedantic
CC = gcc
-LIBS = -L/usr/X11R6/lib -lX11
+LIBS = -lX11
CFLAGS = $(OPTIMIZE) $(WARN) $(DEBUG)
$(PROG): $(PROG).c
- $(CC) $(CFLAGS) $< $(LIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
clean:
debian/rules clean
@@ -35,5 +35,5 @@ doc:
groff -Tascii -man ratmen.1|less
install: $(PROG)
- install -D -p -m 755 -s $(PROG) $(PREFIX)/bin/$(PROG)
- install -D -p -m 755 $(PROG).1 $(MANDIR)/man1/$(PROG).1
+ $(BSD_INSTALL_PROGRAM_DIR) ${DESTDIR}$(PREFIX)/bin
+ $(BSD_INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(PREFIX)/bin
|