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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
$NetBSD: patch-aa,v 1.1.1.1 1999/10/28 19:52:27 kim Exp $
--- Makefile.orig Thu Oct 21 18:06:01 1999
+++ Makefile Thu Oct 21 18:07:08 1999
@@ -65,14 +65,14 @@
# set:
# MAILPNAMES =
#
-MAILPNAMES = mailp newsp digestp filep filofaxp fileofaxpp franklinp \
+MAILPNAMES = mailp newsp digestp filep filofaxp filofaxpp franklinp \
proplanp timemanp timesysip timesyspp
#---------------------------------------------------------------------
# Mimep is capable of MIME support (by using LaTeX and metamail). It uses
# some functions from the mp distrubution. To enable these functions then
# uncomment the following definition.
#
-#MIME_SUPPORT = -DMIME_SUPPORT
+MIME_SUPPORT = -DMIME_SUPPORT
#---------------------------------------------------------------------
# Mptool uses Motif. If you are compiling mptool you will need to
# uncomment the following two lines and set appropriately.
@@ -121,28 +121,29 @@
# appropriately. If it's not present, then a sensible default value
# is used.
#
-#PROLOGUE = -DPROLOGUE=\"$(MPLIBDIR)\"
+PROLOGUE = -DPROLOGUE=\"$(MPLIBDIR)\"
#---------------------------------------------------------------------
# Mp and Mptool need X11 to compile and link properly. You will need to
# set the following two lines appropriately.
#
+OPENWINHOME = ${X11BASE}
X11INCDIR = -I$(OPENWINHOME)/include
-X11LIBDIR = -L$(OPENWINHOME)/lib
+X11LIBDIR = -L$(OPENWINHOME)/lib -R$(OPENWINHOME)/lib
#=====================================================================
#
# Default locations where mp files will be installed.
# You might wish to alter these values.
#
-MPPATH = /usr/local
+MPPATH = ${PREFIX}
MPBINDIR = $(MPPATH)/bin
-MPLIBDIR = $(MPPATH)/lib/mp
+MPLIBDIR = $(MPPATH)/share/mp
MPMANDIR = $(MPPATH)/man/man$(MPMANSECT)
-MPMANSECT = l
+MPMANSECT = 1
#---------------------------------------------------------------------
# Compilation flags and standard macro definitions.
#
-CCOMP = -O
-CC = gcc
+CCOMP = ${CFLAGS}
+#CC = gcc
#---------------------------------------------------------------------
# Compilation flags used by all MP programs.
#
@@ -155,11 +156,11 @@
MPCDEFS = $(GENCDEFS) -I../common
MPCFLAGS = $(CCOMP) $(MPCDEFS)
MPLDFLAGS = $(X11LIBDIR)
-MPLIBS = -lX11
+MPLIBS = -lX11 $(EXTRALIBS)
#
# Options for mp submake.
#
-MPMAKEOPTS = $(MFLAGS) CC=$(CC) CFLAGS='$(MPCFLAGS)' \
+MPMAKEOPTS = $(MFLAGS) CC='$(CC)' CFLAGS='$(MPCFLAGS)' \
LDFLAGS='$(MPLDFLAGS)' LIBS='$(MPLIBS)' \
MPBINDIR='$(MPBINDIR)' MPLIBDIR='$(MPLIBDIR)' \
MPMANDIR='$(MPMANDIR)' MPMANSECT='$(MPMANSECT)' \
@@ -174,7 +175,7 @@
#
# Options for mptool submake.
#
-MPTOOLMAKEOPTS = $(MFLAGS) CC=$(CC) CFLAGS='$(MPTOOLCFLAGS)' \
+MPTOOLMAKEOPTS = $(MFLAGS) CC='$(CC)' CFLAGS='$(MPTOOLCFLAGS)' \
LDFLAGS='$(MPTOOLLDFLAGS)' LIBS='$(MPTOOLLIBS)' \
MPBINDIR='$(MPBINDIR)' MPLIBDIR='$(MPLIBDIR)' \
MPMANDIR='$(MPMANDIR)' MPMANSECT='$(MPMANSECT)'
@@ -189,13 +190,11 @@
#
# Options for mimep submake.
#
-MIMEPMAKEOPTS = $(MFLAGS) CC=$(CC) CFLAGS='$(MIMEPCFLAGS)' \
+MIMEPMAKEOPTS = $(MFLAGS) CC='$(CC)' CFLAGS='$(MIMEPCFLAGS)' \
LIBS='$(MIMEPLIBS)' MIMEPBINDIR='$(MPBINDIR)' \
MIMEPMANDIR='$(MPMANDIR)' MIMEPMANSECT='$(MPMANSECT)'
#=================================================================
-.KEEP_STATE:
-
BINARIES = mp mptool mimep
MPDIR = mp
MPTOOLDIR = mptool
@@ -236,9 +235,15 @@
SHELL = /bin/sh
-install:
+install: install-mptool install-mp install-mimep
+
+install-mptool:
(cd $(MPTOOLDIR); $(MAKE) $(MPTOOLMAKEOPTS) install)
+
+install-mp:
(cd $(MPDIR); $(MAKE) $(MPMAKEOPTS) install)
+
+install-mimep:
(cd $(MIMEPDIR); $(MAKE) $(MIMEPMAKEOPTS) install)
lint:
|