-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile.in
157 lines (123 loc) · 3.97 KB
/
Makefile.in
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# ###################################################################
#
# Copyright (C) 2000-2006 Erik Edelmann <Erik.Edelmann@iki.fi>
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public
# License version 2 as published by the Free Software
# Foundation.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
#
# ###################################################################
PROG = makedepf90@EXEEXT@
VERSION = 2.8.9
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@ -DVERSION=\"$(VERSION)\"
LEX = @LEX@
LFLAGS = -i -B
YACC = @YACC@
YFLAGS =
DESTDIR ?= .
# Where to install stuff
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
# How to install stuff
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
SRC_H = errormesg.h finddep.h global.h list.h macro.h modfile_name.h utils.h \
xmalloc.h
SRC_C = errormesg.c list.c macro.c main.c modfile_name.c utils.c xmalloc.c
SRC_Y = find_dep.y
SRC_L = lexer.l
SRC = $(SRC_H) $(SRC_C) $(SRC_Y) $(SRC_L)
EXTRA_SRC = strcasecmp.c
DISTFILES = $(SRC) lexer.c find_dep.h find_dep.c Makefile.in configure.in \
configure makedepf90.1 COPYING NEWS README Makefile.def .depend \
$(EXTRA_SRC) install-sh config.h.in config.h
OBJ = ${SRC_C:.c=.o} $(SRC_Y:.y=.o) $(SRC_L:.l=.o)
LIBOBJS = @LIBOBJS@
.SUFFIXES:
.SUFFIXES: .c .o .l .y .h
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) $<
.l.c:
$(LEX) $(LFLAGS) -t $< > $@
.y.c:
$(YACC) -d $(YFLAGS) $<
mv y.tab.c $@
mv y.tab.h $*.h
.y.h:
$(YACC) -d $(YFLAGS) $<
mv y.tab.h $@
mv y.tab.c $*.c
$(PROG): $(OBJ)
$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(OBJ) $(LIBOBJS) $(LIBS)
include .depend
clean:
rm -f *.o $(PROG) gmon.out gmon.sum
find . -name 'core' -exec rm {} \;
realclean: clean
rm -f lexer.c find_dep.[ch] .depend configure tags config.cache config.log config.status
install: $(PROG) makedepf90.1
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(mandir)/man1
$(INSTALL_DATA) makedepf90.1 $(DESTDIR)$(mandir)/man1
install-strip: $(PROG) makedepf90.1
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) -s $(PROG) $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(mandir)/man1
$(INSTALL_DATA) makedepf90.1 $(DESTDIR)$(mandir)/man1
test: $(PROG)
(cd testdir/test1; bash test1.sh)
(cd testdir/test2; bash test2.sh)
(cd testdir/bayes; bash bayes.sh)
(cd testdir/bayes2; bash test.sh)
(cd testdir/bayes3; bash bayes3.sh)
(cd testdir/bayes4; bash bayes4.sh)
(cd testdir/bayes_coco; bash bayes_coco.sh)
(cd testdir/ranlib; bash ranlib.sh)
(cd testdir/convert; bash convert.sh)
(cd testdir/stdtype; bash stdtype.sh)
(cd testdir/f90ppr; bash f90ppr.sh)
(cd testdir/f90tops; bash f90tops.sh)
(cd testdir/e; bash e.sh)
(cd testdir/err; bash err.sh)
(cd testdir/recur; bash recur.sh)
(cd testdir/eol; bash eol.sh)
(cd testdir/optI; bash optI.sh)
(cd testdir/glurr; bash glurr.sh)
depend .depend: lexer.c find_dep.c find_dep.h
$(CC) -MM *.c > .depend
lexer.c: lexer.l
find_dep.h find_dep.c: find_dep.y
configure: configure.in
autoconf
Makefile: Makefile.in configure
./configure
Makefile.def: Makefile
cp Makefile Makefile.def
dist: $(DISTFILES)
if [ -d makedepf90-$(VERSION) -o -f makedepf90-$(VERSION) ]; then \
rm -rf makedepf90-$(VERSION); \
fi
mkdir makedepf90-$(VERSION)
cp $(DISTFILES) makedepf90-$(VERSION)
tar zcvf makedepf90-$(VERSION).tar.gz makedepf90-$(VERSION)
rm -rf makedepf90-$(VERSION)
wcl:
wc -l $(SRC) $(EXTRA_SRC)