annotate libcruft/Makefile.in @ 7017:a1dbe9d80eee

[project @ 2007-10-12 21:27:11 by jwe]
author jwe
date Fri, 12 Oct 2007 21:27:37 +0000
parents 93c65f2a5668
children 56be6f31dd4e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
1 # Makefile for octave's libcruft directory
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
2 #
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
3 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
4 # 2002, 2003, 2004, 2005, 2006, 2007 John W. Eaton
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
5 #
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
6 # This file is part of Octave.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
7 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
8 # Octave is free software; you can redistribute it and/or modify it
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
9 # under the terms of the GNU General Public License as published by the
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
10 # Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
11 # your option) any later version.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
12 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
13 # Octave is distributed in the hope that it will be useful, but WITHOUT
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
16 # for more details.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
17 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
18 # You should have received a copy of the GNU General Public License
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
19 # along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
20 # <http://www.gnu.org/licenses/>.
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
21
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
22 TOPDIR = ..
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
23
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
24 srcdir = @srcdir@
411
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 41
diff changeset
25 top_srcdir = @top_srcdir@
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
26 VPATH = @srcdir@
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
27
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
28 include $(TOPDIR)/Makeconf
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
29
651
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 411
diff changeset
30 INSTALL = @INSTALL@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 411
diff changeset
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 411
diff changeset
32 INSTALL_DATA = @INSTALL_DATA@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 411
diff changeset
33
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
34 # List of the directories that contain Fortran source. Simply copying
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
35 # a new .f file into one of these directories is sufficient to have it
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
36 # added to $(LIBPRE)cruft.a. If you add a new directory here, you also need
1668
6e8ac624ed9b [project @ 1995-12-26 06:35:24 by jwe]
jwe
parents: 1461
diff changeset
37 # generate a new configure script in the top-level directory (edit
6e8ac624ed9b [project @ 1995-12-26 06:35:24 by jwe]
jwe
parents: 1461
diff changeset
38 # configure.in and run autoconf).
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
39
3690
55e59236c5e5 [project @ 2000-06-30 20:55:36 by jwe]
jwe
parents: 3648
diff changeset
40 # Some of the directories in libcruft may be only optionally built,
55e59236c5e5 [project @ 2000-06-30 20:55:36 by jwe]
jwe
parents: 3648
diff changeset
41 # e.g. if they are already present on the system. For these, their
55e59236c5e5 [project @ 2000-06-30 20:55:36 by jwe]
jwe
parents: 3648
diff changeset
42 # dirname is substituted by configure and may be the empty string.
55e59236c5e5 [project @ 2000-06-30 20:55:36 by jwe]
jwe
parents: 3648
diff changeset
43
3989
bdde4f33221e [project @ 2002-07-12 19:50:46 by jwe]
jwe
parents: 3983
diff changeset
44 CRUFT_DIRS = amos @BLAS_DIR@ blas-xtra daspk dasrt dassl \
4329
d53c33d93440 [project @ 2003-02-18 20:00:48 by jwe]
jwe
parents: 4153
diff changeset
45 @FFT_DIR@ @LAPACK_DIR@ lapack-xtra minpack \
5173
1278a2bc1527 [project @ 2005-03-02 01:33:37 by jwe]
jwe
parents: 4760
diff changeset
46 misc odepack ordered-qz quadpack ranlib \
3989
bdde4f33221e [project @ 2002-07-12 19:50:46 by jwe]
jwe
parents: 3983
diff changeset
47 slatec-err slatec-fn villad
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
48
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
49 SUBDIRS = $(CRUFT_DIRS)
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
50
3852
1ab41d5d6ec3 [project @ 2001-11-02 05:43:11 by jwe]
jwe
parents: 3827
diff changeset
51 DISTSUBDIRS = $(sort $(CRUFT_DIRS) blas fftpack lapack)
3700
e313f24b88ef [project @ 2000-07-18 05:05:04 by jwe]
jwe
parents: 3690
diff changeset
52
4441
d46651d0cd0e [project @ 2003-07-02 23:34:10 by jwe]
jwe
parents: 4440
diff changeset
53 CLEAN_SUBDIRS = $(DISTSUBDIRS)
d46651d0cd0e [project @ 2003-07-02 23:34:10 by jwe]
jwe
parents: 4440
diff changeset
54
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
55 DISTFILES = Makefile.in ChangeLog Makerules.in $(SOURCES) \
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
56 STOP.patch mkf77def.in
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
57
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6102
diff changeset
58 XTRA_CRUFT_SH_LDFLAGS = @XTRA_CRUFT_SH_LDFLAGS@
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6102
diff changeset
59 SH_LDFLAGS += $(XTRA_CRUFT_SH_LDFLAGS)
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6102
diff changeset
60
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
61 # Include BLAS and FFTW just in case some of libcruft depends on them
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6102
diff changeset
62 LINK_DEPS = $(BLAS_LIBS) $(FFTW_LIBS) $(FLIBS)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 3989
diff changeset
63
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
64 all: libraries
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
65 .PHONY: all
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
66
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
67 mkf77def: mkf77def.in $(TOPDIR)/Makeconf
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
68 @$(do-subst-f77-mangling)
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
69 chmod a+rx $@
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
70
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
71 $(SUBDIRS): mkf77def
3297
b68ef5dec3bd [project @ 1999-10-19 17:52:27 by jwe]
jwe
parents: 3219
diff changeset
72 $(MAKE) -C $@ all
1134
d65e3b59e07c [project @ 1995-02-23 20:09:31 by jwe]
jwe
parents: 1073
diff changeset
73 .PHONY: $(SUBDIRS)
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
74
5775
ace8d8d26933 [project @ 2006-04-24 19:13:06 by jwe]
jwe
parents: 5451
diff changeset
75 # FIXME -- this should build the shared library directly from
2490
eb3e02c0f5e2 [project @ 1996-11-08 22:39:25 by jwe]
jwe
parents: 2487
diff changeset
76 # a normal archive file (created from PIC code, though).
eb3e02c0f5e2 [project @ 1996-11-08 22:39:25 by jwe]
jwe
parents: 2487
diff changeset
77
3808
885b296ef83a [project @ 2001-03-27 19:12:58 by jwe]
jwe
parents: 3700
diff changeset
78 MISC_OBJ := misc/machar.o misc/f77-extern.o \
4571
ef4bdde0805d [project @ 2003-10-30 16:48:09 by jwe]
jwe
parents: 4473
diff changeset
79 misc/f77-fcn.o misc/lo-error.o misc/quit.o misc/cquit.o
1914
8637abd0da0b [project @ 1996-02-10 03:26:34 by jwe]
jwe
parents: 1911
diff changeset
80
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
81 CRUFT_FSRC := $(foreach dir, $(SUBDIRS), $(wildcard $(srcdir)/$(dir)/*.f))
2512
fda09c1e787e [project @ 1996-11-14 08:39:41 by jwe]
jwe
parents: 2490
diff changeset
82 CRUFT_OBJ2 := $(patsubst $(srcdir)/%, %, $(CRUFT_FSRC))
2425
679068a18eee [project @ 1996-10-25 01:24:59 by jwe]
jwe
parents: 2405
diff changeset
83 CRUFT_OBJ1 := $(patsubst %.f, %.o, $(CRUFT_OBJ2))
1914
8637abd0da0b [project @ 1996-02-10 03:26:34 by jwe]
jwe
parents: 1911
diff changeset
84 CRUFT_OBJ := $(CRUFT_OBJ1) $(MISC_OBJ)
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
85 CRUFT_DEFS := $(patsubst %.f, %.def, $(CRUFT_OBJ2))
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
86
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
87 ifeq ($(SHARED_LIBS), true)
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
88 ifdef FPICFLAG
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
89 CRUFT_OBJ_DIR := $(dir $(CRUFT_OBJ))
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
90 CRUFT_OBJ_PICDIR := $(addsuffix pic/, $(CRUFT_OBJ_DIR))
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
91 CRUFT_OBJ_NOTDIR := $(notdir $(CRUFT_OBJ))
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
92 CRUFT_PICOBJ := $(join $(CRUFT_OBJ_PICDIR), $(CRUFT_OBJ_NOTDIR))
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
93 else
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
94 CRUFT_PICOBJ := $(CRUFT_OBJ)
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
95 endif
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
96 endif
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
97
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
98 ifeq ($(SHARED_LIBS), true)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
99 ifeq ($(STATIC_LIBS), true)
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
100 LIBRARIES = $(LIBPRE)cruft.$(LIBEXT) $(LIBPRE)cruft.$(SHLEXT_VER)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
101 else
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
102 LIBRARIES = $(LIBPRE)cruft.$(SHLEXT_VER)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
103 endif
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
104 else
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
105 ifeq ($(STATIC_LIBS), true)
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
106 LIBRARIES = $(LIBPRE)cruft.$(LIBEXT)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
107 else
3647
4cdb8c0ef5f0 [project @ 2000-03-25 07:28:09 by jwe]
jwe
parents: 3615
diff changeset
108 LIBRARIES =
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
109 endif
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
110 endif
3647
4cdb8c0ef5f0 [project @ 2000-03-25 07:28:09 by jwe]
jwe
parents: 3615
diff changeset
111
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
112 $(CRUFT_DEFS): $(SUBDIRS)
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
113
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
114 cruft.def: $(CRUFT_DEFS)
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
115 echo "EXPORTS" > $@
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
116 cat $(CRUFT_DEFS) >> $@
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
117
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6051
diff changeset
118 libraries: cruft.def
3647
4cdb8c0ef5f0 [project @ 2000-03-25 07:28:09 by jwe]
jwe
parents: 3615
diff changeset
119 $(MAKE) $(LIBRARIES)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
120 .PHONY: libraries
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
121
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
122 $(LIBPRE)cruft.$(LIBEXT): $(CRUFT_OBJ)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
123 rm -f $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
124 $(AR) $(ARFLAGS) $@ $^
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
125 $(RANLIB) $@
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
126
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
127 $(LIBPRE)cruft.$(SHLEXT_VER): $(LIBPRE)cruft.$(SHLEXT)
3049
4d275e0a0576 [project @ 1997-06-07 02:57:30 by jwe]
jwe
parents: 3044
diff changeset
128 rm -f $@
3036
b8c5ded2751f [project @ 1997-06-05 21:44:19 by jwe]
jwe
parents: 3034
diff changeset
129 $(LN_S) $< $@
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
130
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
131 $(LIBPRE)cruft.$(SHLEXT): $(CRUFT_PICOBJ)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3297
diff changeset
132 rm -f $@
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 3989
diff changeset
133 $(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ $^ $(LINK_DEPS)
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
134
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
135 $(CRUFT_OBJ):
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
136
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
137 check: all
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
138 .PHONY: check
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
139
4442
e636265f2987 [project @ 2003-07-02 23:40:20 by jwe]
jwe
parents: 4441
diff changeset
140 install install-strip uninstall::
1685
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1682
diff changeset
141 @$(subdir-for-command)
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
142
4441
d46651d0cd0e [project @ 2003-07-02 23:34:10 by jwe]
jwe
parents: 4440
diff changeset
143 clean mostlyclean distclean maintainer-clean::
d46651d0cd0e [project @ 2003-07-02 23:34:10 by jwe]
jwe
parents: 4440
diff changeset
144 @$(foreach d, $(CLEAN_SUBDIRS), $(do-subdir-for-command))
d46651d0cd0e [project @ 2003-07-02 23:34:10 by jwe]
jwe
parents: 4440
diff changeset
145
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
146 install::
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4329
diff changeset
147 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
148 if $(STATIC_LIBS); then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
149 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(LIBEXT) ; \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
150 $(INSTALL_DATA) $(LIBPRE)cruft.$(LIBEXT) \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
151 $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(LIBEXT) ; \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
152 $(RANLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(LIBEXT) ; \
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
153 fi
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
154 if $(SHARED_LIBS); then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
155 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB_VER); \
4473
32ac2bea0185 [project @ 2003-07-29 23:05:32 by jwe]
jwe
parents: 4472
diff changeset
156 $(INSTALL) \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
157 $(LIBPRE)cruft.$(SHLLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB_VER); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
158 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB); \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5276
diff changeset
159 (cd $(DESTDIR)$(octlibdir); \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
160 $(LN_S) $(LIBPRE)cruft.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB)); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 3989
diff changeset
161 if test x$(SHLBIN) != x ; then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
162 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)cruft.$(SHLBIN); \
4473
32ac2bea0185 [project @ 2003-07-29 23:05:32 by jwe]
jwe
parents: 4472
diff changeset
163 $(INSTALL_PROGRAM) \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
164 $(LIBPRE)cruft.$(SHLBIN) $(DESTDIR)$(bindir)/$(LIBPRE)cruft.$(SHLBIN); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 3989
diff changeset
165 fi; \
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
166 fi
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
167
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2787
diff changeset
168 install-strip::
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2787
diff changeset
169 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2787
diff changeset
170
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
171 uninstall::
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
172 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(LIBEXT)
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
173 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB)
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
174 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)cruft.$(SHLLIB_VER)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 3989
diff changeset
175 if test x$(SHLBIN) != x; then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
176 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)cruft.$(SHLBIN); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
177 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)cruft.$(SHLBIN_VER); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 3989
diff changeset
178 fi
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
179
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
180 tags TAGS:: $(SOURCES)
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
181 $(SUBDIR_FOR_COMMAND)
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
182
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
183 tags::
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
184 ctags $(SOURCES)
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
185
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
186 TAGS:: $(SOURCES)
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
187 etags $(SOURCES)
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
188
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5196
diff changeset
189 clean mostlyclean distclean::
6488
a3152d296248 [project @ 2007-04-04 16:10:26 by jwe]
jwe
parents: 6467
diff changeset
190 rm -f $(LIBPRE)cruft.$(LIBEXT)
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5775
diff changeset
191 rm -f $(LIBPRE)cruft.$(SHLEXT_VER) $(LIBPRE)cruft.$(SHLEXT)
6488
a3152d296248 [project @ 2007-04-04 16:10:26 by jwe]
jwe
parents: 6467
diff changeset
192 rm -f $(CRUFT_DEFS) cruft.def mkf77def
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
193
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5196
diff changeset
194 distclean maintainer-clean::
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5196
diff changeset
195 rm -f Makefile Makerules so_locations
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
196
2379
4f352018a7ef [project @ 1996-10-12 05:21:02 by jwe]
jwe
parents: 2358
diff changeset
197 maintainer-clean::
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5196
diff changeset
198 rm -f tags TAGS
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
199
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
200 dist:
3700
e313f24b88ef [project @ 2000-07-18 05:05:04 by jwe]
jwe
parents: 3690
diff changeset
201 for dir in $(DISTSUBDIRS); do mkdir ../`cat ../.fname`/libcruft/$$dir; $(MAKE) -C $$dir $@; done
6797
5b00586ccd27 [project @ 2007-07-25 15:49:17 by jwe]
jwe
parents: 6796
diff changeset
202 ln $(addprefix $(srcdir)/, $(DISTFILES)) ../`cat ../.fname`/libcruft
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
203 .PHONY: dist
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
204
3648
3074e565689c [project @ 2000-03-25 07:52:06 by jwe]
jwe
parents: 3647
diff changeset
205 .NOTPARALLEL: