blob: 24e8a6abbfd5659e4540a3c6ef384af58fcbbc3c (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
--- Makefile.orig Sat May 4 10:45:07 2002
+++ Makefile Wed May 8 00:58:04 2002
@@ -29,22 +29,22 @@
# Configure the destination directories:
#
#BINDIR=/usr/local/bin
-BINDIR=/usr/bin
+BINDIR=${PREFIX}/bin
#MANDIR=/usr/local/man/man1
-MANDIR=/usr/man/man1
+MANDIR=${PREFIX}/man/man1
#DOCDIR=/usr/local/doc/clara
#DOCDIR=/usr/doc/clara
#DOCDIR=/usr/doc/clara-$(VERSION)
-DOCDIR=/usr/share/doc/clara
+DOCDIR=${PREFIX}/share/doc/clara
#
# Configure these variables accordingly to your system:
#
-INCLUDE = -I/usr/X11R6/include
-LIBPATH = -L/usr/X11R6/lib
-CC = gcc
+INCLUDE = -I${X11BASE}/include
+LIBPATH = -L${X11BASE}/lib
+CC ?= gcc
#
# Now choose the Clara OCR compilation options:
@@ -85,7 +85,7 @@
#
# Add or remove flags if necessary:
#
-CFLAGS = $(INCLUDE) -g -Wall $(COPTS)
+CFLAGS += $(INCLUDE) $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 -Wall $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 -pedantic $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 $(COPTS)
@@ -93,7 +93,7 @@
#
# Add or remove flags if necessary:
#
-LDFLAGS = -g
+LDFLAGS =
#
# If your system requires additional libs, please add them:
@@ -175,13 +175,15 @@
./clara -p 2
install: all
- install -d $(BINDIR)
- install clara $(BINDIR)
- install selthresh.pl $(BINDIR)
- install -d $(MANDIR)
- install doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR)
- install -d $(DOCDIR)
- install ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
+ ${MKDIR} $(BINDIR)
+ ${BSD_INSTALL_PROGRAM} clara $(BINDIR)
+ ${BSD_INSTALL_SCRIPT} selthresh.pl $(BINDIR)
+ ${MKDIR} $(MANDIR)
+ ${BSD_INSTALL_MAN} doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR)
+.ifndef NOPORTDOCS
+ ${MKDIR} $(DOCDIR)
+ ${BSD_INSTALL_DATA} ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
+.endif
clean:
rm -f clara sclara $(OBJS) doc/clara*.1 doc/clara*.html doc/FAQ
|