annotate libcruft/Makefile.in @ 2787:650ab15f8954

[project @ 1997-03-03 21:42:25 by jwe]
author jwe
date Mon, 03 Mar 1997 21:46:11 +0000
parents 02f569448c7a
children 1dd37f97364a
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 #
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
2 # Makefile for octave's libcruft directory
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
3 #
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
4 # John W. Eaton
1452
2eb569ed50bf [project @ 1995-09-20 04:23:34 by jwe]
jwe
parents: 1391
diff changeset
5 # jwe@bevo.che.wisc.edu
2eb569ed50bf [project @ 1995-09-20 04:23:34 by jwe]
jwe
parents: 1391
diff changeset
6 # University of Wisconsin-Madison
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
7 # Department of Chemical Engineering
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
8
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
9 TOPDIR = ..
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
10
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
11 srcdir = @srcdir@
411
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 41
diff changeset
12 top_srcdir = @top_srcdir@
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
13 VPATH = @srcdir@
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
14
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
15 include $(TOPDIR)/Makeconf
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
16
651
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 411
diff changeset
17 INSTALL = @INSTALL@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 411
diff changeset
18 INSTALL_PROGRAM = @INSTALL_PROGRAM@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 411
diff changeset
19 INSTALL_DATA = @INSTALL_DATA@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 411
diff changeset
20
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
21 # List of the directories that contain Fortran source. Simply copying
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
22 # a new .f file into one of these directories is sufficient to have it
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
23 # added to libcruft.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
24 # 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
25 # configure.in and run autoconf).
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
26
2482
c89bce1baba3 [project @ 1996-11-07 18:48:29 by jwe]
jwe
parents: 2480
diff changeset
27 CRUFT_DIRS = balgen blas dassl eispack fftpack fsqp lapack linpack \
1073
905a7e2f2023 [project @ 1995-01-27 14:32:07 by jwe]
jwe
parents: 810
diff changeset
28 minpack misc npsol odepack qpsol quadpack ranlib slatec-fn \
905a7e2f2023 [project @ 1995-01-27 14:32:07 by jwe]
jwe
parents: 810
diff changeset
29 villad
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
30
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
31 SUBDIRS = $(CRUFT_DIRS)
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
32
2787
650ab15f8954 [project @ 1997-03-03 21:42:25 by jwe]
jwe
parents: 2749
diff changeset
33 DISTFILES = Makefile.in ChangeLog Makerules.in configure.in \
650ab15f8954 [project @ 1997-03-03 21:42:25 by jwe]
jwe
parents: 2749
diff changeset
34 $(SOURCES) STOP.patch
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
35
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
36 ifeq ($(SHARED_LIBS), true)
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
37 BINDISTFILES = libcruft.$(SHLEXT)
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
38 BINDISTLIBS = $(addprefix libcruft/, libcruft.$(SHLEXT))
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
39 endif
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
40
2490
eb3e02c0f5e2 [project @ 1996-11-08 22:39:25 by jwe]
jwe
parents: 2487
diff changeset
41 all: $(SUBDIRS) stamp-shared
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
42 .PHONY: all
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
43
1134
d65e3b59e07c [project @ 1995-02-23 20:09:31 by jwe]
jwe
parents: 1073
diff changeset
44 $(SUBDIRS):
d65e3b59e07c [project @ 1995-02-23 20:09:31 by jwe]
jwe
parents: 1073
diff changeset
45 echo making all in $@
d65e3b59e07c [project @ 1995-02-23 20:09:31 by jwe]
jwe
parents: 1073
diff changeset
46 cd $@; $(MAKE) all
d65e3b59e07c [project @ 1995-02-23 20:09:31 by jwe]
jwe
parents: 1073
diff changeset
47 .PHONY: $(SUBDIRS)
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
48
2490
eb3e02c0f5e2 [project @ 1996-11-08 22:39:25 by jwe]
jwe
parents: 2487
diff changeset
49 # XXX FIXME XXX -- this should build the shared library directly from
eb3e02c0f5e2 [project @ 1996-11-08 22:39:25 by jwe]
jwe
parents: 2487
diff changeset
50 # a normal archive file (created from PIC code, though).
eb3e02c0f5e2 [project @ 1996-11-08 22:39:25 by jwe]
jwe
parents: 2487
diff changeset
51
2551
65e2cd433c7f [project @ 1996-11-20 23:08:48 by jwe]
jwe
parents: 2512
diff changeset
52 MISC_OBJ := misc/machar.o misc/dostop.o misc/f77-extern.o \
65e2cd433c7f [project @ 1996-11-20 23:08:48 by jwe]
jwe
parents: 2512
diff changeset
53 misc/f77-fcn.o misc/lo-error.o
1914
8637abd0da0b [project @ 1996-02-10 03:26:34 by jwe]
jwe
parents: 1911
diff changeset
54
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
55 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
56 CRUFT_OBJ2 := $(patsubst $(srcdir)/%, %, $(CRUFT_FSRC))
2425
679068a18eee [project @ 1996-10-25 01:24:59 by jwe]
jwe
parents: 2405
diff changeset
57 CRUFT_OBJ1 := $(patsubst %.f, %.o, $(CRUFT_OBJ2))
1914
8637abd0da0b [project @ 1996-02-10 03:26:34 by jwe]
jwe
parents: 1911
diff changeset
58 CRUFT_OBJ := $(CRUFT_OBJ1) $(MISC_OBJ)
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
59
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
60 ifeq ($(SHARED_LIBS), true)
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
61 ifdef FPICFLAG
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
62 CRUFT_OBJ_DIR := $(dir $(CRUFT_OBJ))
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
63 CRUFT_OBJ_PICDIR := $(addsuffix pic/, $(CRUFT_OBJ_DIR))
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
64 CRUFT_OBJ_NOTDIR := $(notdir $(CRUFT_OBJ))
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
65 CRUFT_PICOBJ := $(join $(CRUFT_OBJ_PICDIR), $(CRUFT_OBJ_NOTDIR))
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
66 else
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
67 CRUFT_PICOBJ := $(CRUFT_OBJ)
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
68 endif
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
69 endif
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
70
2036
91d7630f727a [project @ 1996-03-27 12:04:06 by jwe]
jwe
parents: 1914
diff changeset
71 stamp-shared: $(CRUFT_PICOBJ)
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
72 if $(SHARED_LIBS); then \
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2624
diff changeset
73 $(SH_LD) $(SH_LDFLAGS) -o libcruft.$(SHLEXT) $(CRUFT_PICOBJ) ; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2257
diff changeset
74 else \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2257
diff changeset
75 true ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2257
diff changeset
76 fi
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
77 touch stamp-shared
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
78
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
79 $(CRUFT_OBJ):
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
80
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
81 check: all
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
82 .PHONY: check
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
83
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1167
diff changeset
84 install uninstall clean mostlyclean distclean maintainer-clean::
1685
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1682
diff changeset
85 @$(subdir-for-command)
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
86
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
87 install::
810
1865b6725111 [project @ 1994-10-14 18:43:46 by jwe]
jwe
parents: 803
diff changeset
88 $(top_srcdir)/mkinstalldirs $(libdir)
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
89 rm -f $(libdir)/libcruft.a
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 651
diff changeset
90 $(INSTALL_DATA) libcruft.a $(libdir)/libcruft.a
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
91 $(RANLIB) $(libdir)/libcruft.a
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
92 if $(SHARED_LIBS); then \
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
93 rm -f $(libdir)/libcruft.$(SHLEXT); \
2487
8c6e9535cbda [project @ 1996-11-08 15:58:52 by jwe]
jwe
parents: 2484
diff changeset
94 $(INSTALL_PROGRAM) libcruft.$(SHLEXT) $(libdir)/libcruft.$(SHLEXT); \
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
95 fi
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
96
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
97 uninstall::
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
98 rm -f $(libdir)/libcruft.a
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
99
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
100 tags TAGS:: $(SOURCES)
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
101 $(SUBDIR_FOR_COMMAND)
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
102
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
103 tags::
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
104 ctags $(SOURCES)
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
105
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
106 TAGS:: $(SOURCES)
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
107 etags $(SOURCES)
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
108
1167
364906259d4a [project @ 1995-03-10 16:39:25 by jwe]
jwe
parents: 1134
diff changeset
109 clean mostlyclean::
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
110 rm -f *.a *.o
1717
b3ce842b4975 [project @ 1996-01-09 04:53:25 by jwe]
jwe
parents: 1685
diff changeset
111 if $(SHARED_LIBS); then rm -f *.$(SHLEXT); fi
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
112
2047
88a71749b954 [project @ 1996-03-29 19:54:14 by jwe]
jwe
parents: 2046
diff changeset
113 distclean::
2405
e6adec89527e [project @ 1996-10-14 16:23:48 by jwe]
jwe
parents: 2379
diff changeset
114 rm -f *.a *.o Makefile Makerules so_locations stamp-shared
2047
88a71749b954 [project @ 1996-03-29 19:54:14 by jwe]
jwe
parents: 2046
diff changeset
115 if $(SHARED_LIBS); then rm -f *.$(SHLEXT); fi
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
116
2379
4f352018a7ef [project @ 1996-10-12 05:21:02 by jwe]
jwe
parents: 2358
diff changeset
117 maintainer-clean::
2749
02f569448c7a [project @ 1997-02-26 18:16:02 by jwe]
jwe
parents: 2686
diff changeset
118 rm -f *.a *.o configure Makefile Makerules so_locations tags TAGS
2047
88a71749b954 [project @ 1996-03-29 19:54:14 by jwe]
jwe
parents: 2046
diff changeset
119 if $(SHARED_LIBS); then rm -f *.$(SHLEXT); fi
6
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
120
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
121 dist:
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
122 for dir in $(SUBDIRS); do mkdir ../`cat ../.fname`/libcruft/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
123 ln $(DISTFILES) ../`cat ../.fname`/libcruft
73cca179ce1f [project @ 1993-08-08 02:09:35 by jwe]
jwe
parents:
diff changeset
124 .PHONY: dist
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
125
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
126 bin-dist:
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
127 if [ -n "$(BINDISTFILES)" ]; then \
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
128 ln $(BINDISTFILES) ../`cat ../.fname`/libcruft ; \
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
129 fi
2686
6d0a6fc92f06 [project @ 1997-02-14 22:31:36 by jwe]
jwe
parents: 2676
diff changeset
130 if [ -n "$(BINDISTLIBS)" ]; then \
6d0a6fc92f06 [project @ 1997-02-14 22:31:36 by jwe]
jwe
parents: 2676
diff changeset
131 echo $(BINDISTLIBS) >> ../`cat ../.fname`/LIBRARIES ; \
6d0a6fc92f06 [project @ 1997-02-14 22:31:36 by jwe]
jwe
parents: 2676
diff changeset
132 fi
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
133 .PHONY: bin-dist