summaryrefslogtreecommitdiff
path: root/textproc/nfbtrans/files/patch-aa
blob: a62029719e65a834301621ea99a76b9d20b749ae (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
--- makefile.orig	Sat Apr 17 08:22:40 1999
+++ makefile	Wed Sep  8 06:01:21 1999
@@ -3,6 +3,11 @@
 #translation software written by the National Federation of the Blind
 #compile under the Unix operating system.
 #
+#Installation prefix:
+PREFIX?=/usr/local
+#Library path:
+UNIX_PATH?=${PREFIX}/lib/nfbtrans/
+#
 #The source and object files are as follows:
 
 SRCFILES=nfbtrans.c nfbpatch.c
@@ -10,7 +15,7 @@
 LIBS= -ltermcap
 
 #Compiler and linking flags are as follows:
-CFLAGS="-O"
+CFLAGS+=-O -DUNIX_PATH=\\\"${UNIX_PATH}\\\"
 CC=gcc
 LDFLAGS=-Bdynamic
 
@@ -21,6 +26,7 @@
 	@echo "make ultrix"
 	@echo "make aix"
 	@echo "make linux"
+	@echo "make freebsd"
 all: nfbtrans
 
 nfbtrans: $(OBJFILES)
@@ -28,6 +34,9 @@
 
 ultrix:
 	$(MAKE) CFLAGS=-O
+
+freebsd:
+	${MAKE} all CFLAGS="${CFLAGS} -Dfreebsd"
 
 linux:
 	$(MAKE) all CFLAGS="-O -Dlinux"