blob: 806140569b616c6d35291a776f41e254aee4f215 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$NetBSD: patch-aa,v 1.2 2006/01/10 16:34:09 joerg Exp $
--- src/Makefile.orig 1995-08-23 12:12:48.000000000 +0000
+++ src/Makefile
@@ -2,16 +2,16 @@
### You need a C compiler that compiles ANSI C code.
-CC = gcc
-CFLAGS = -Wall -pedantic -O
+#CC = gcc
+#CFLAGS = -Wall -pedantic -O
### If you need additional linker flags add them here.
-LDFLAGS =
+LDFLAGS = -s
### The directory where the Elk installation resides on your system.
-ELKDIR = /usr/elk
+ELKDIR = ${PREFIX}/lib/elk
### Additional libraries. You may want to insert the output of the
### shell-script $(ELKDIR)/lib/ldflags here.
-LIBS = -lm
+LIBS = ${COMPILER_RPATH_FLAG}${PREFIX}/lib -lelk -lm
### The makedepend program (it's usually installed with the X11 binaries).
@@ -19,5 +19,5 @@ MAKEDEP = makedepend
### The directory under which you will install the Scheme files.
-DIR = /usr/local/lib/unroff
+DIR = ${PREFIX}/share/unroff
### The default output format.
@@ -31,5 +31,5 @@ FORMAT = html
SHELL = /bin/sh
-INCLUDE = -I$(ELKDIR)/include
+INCLUDE = -I${PREFIX}/include/elk
ELK = $(ELKDIR)/lib/module.o
DEFS = -DDEFAULT_DIR=\"$(DIR)\" -DDEFAULT_FORMAT=\"$(FORMAT)\"
@@ -68,6 +68,5 @@ OBJECTS = \
subst.o\
table.o\
- unroff.o\
- $(ELK)
+ unroff.o
ALL = unroff
|