blob: 4a9e307005d26a2f6cf115dd1618489c80772843 (
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.1.1.1 2006/04/12 17:14:35 minskim 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) $(PREFIX)/bin
+ $(BSD_INSTALL_PROGRAM) $(PROG) $(PREFIX)/bin
|