aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/unroff/files/patch-a
blob: ec6d4a5265135d39b2c1b61c95508115869e46a8 (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
35
36
37
38
39
40
41
42
43
--- src/Makefile.orig   Wed Aug 23 21:12:48 1995
+++ src/Makefile    Thu Nov  6 22:21:29 2003
@@ -1,24 +1,24 @@
 # $Revision: 1.12 $
 
 ###  You need a C compiler that compiles ANSI C code.
-CC      = gcc
-CFLAGS  = -Wall -pedantic -O
+#CC      = gcc
+CFLAGS  += -DBSD
 
 ###  If you need additional linker flags add them here.
 LDFLAGS =
 
 ###  The directory where the Elk installation resides on your system.
-ELKDIR  = /usr/elk
+ELKDIR  = ${PREFIX}/share/elk
 
 ###  Additional libraries.  You may want to insert the output of the
 ###  shell-script $(ELKDIR)/lib/ldflags here.
-LIBS    = -lm
+LIBS    = -lm -lelk -L${LOCALBASE}/lib
 
 ###  The makedepend program (it's usually installed with the X11 binaries).
 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.
 FORMAT = html
@@ -30,8 +30,8 @@
 ###  ------------------------------------------------------------------------- 
 
 SHELL   = /bin/sh
-INCLUDE = -I$(ELKDIR)/include
-ELK     = $(ELKDIR)/lib/module.o
+INCLUDE = -I${LOCALBASE}/include/elk
+#ELK     = $(ELKDIR)/lib/module.o
 DEFS    = -DDEFAULT_DIR=\"$(DIR)\" -DDEFAULT_FORMAT=\"$(FORMAT)\"
 CTAGS   = ctags -t -w