updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / var / da / makedepf90-2.8.8 / Makefile.in
blob542033eedce01cfc407f80dafb325870598cc324
1 # ###################################################################
3 #
4 # Copyright (C) 2000-2006 Erik Edelmann <Erik.Edelmann@iki.fi>
6 # This program is free software; you can redistribute it
7 # and/or modify it under the terms of the GNU General Public
8 # License version 2 as published by the Free Software
9 # Foundation.
11 # This program is distributed in the hope that it will be
12 # useful, but WITHOUT ANY WARRANTY; without even the implied
13 # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 # PURPOSE. See the GNU General Public License for more
15 # details.
17 # You should have received a copy of the GNU General Public
18 # License along with this program; if not, write to the Free
19 # Software Foundation, Inc., 59 Temple Place, Suite 330,
20 # Boston, MA 02111-1307 USA
23 # ###################################################################
26 PROG = makedepf90@EXEEXT@
28 VERSION = 2.8.8
30 CC = @CC@
31 CFLAGS = @CFLAGS@
32 CPPFLAGS = @CPPFLAGS@ -DVERSION=\"$(VERSION)\"
34 LEX = @LEX@
35 LFLAGS = -i -B
37 YACC = @YACC@
38 YFLAGS =
40 # Where to install stuff
41 prefix = @prefix@
42 exec_prefix = @exec_prefix@
43 bindir = @bindir@
44 mandir = @mandir@
46 # How to install stuff
47 INSTALL=@INSTALL@
48 INSTALL_PROGRAM=@INSTALL_PROGRAM@
49 INSTALL_DATA=@INSTALL_DATA@
51 SRC_H = errormesg.h finddep.h global.h list.h macro.h modfile_name.h utils.h \
52 xmalloc.h
53 SRC_C = errormesg.c list.c macro.c main.c modfile_name.c utils.c xmalloc.c find_dep.c lexer.c
54 SRC = $(SRC_H) $(SRC_C)
56 EXTRA_SRC = strcasecmp.c
58 DISTFILES = $(SRC) lexer.c find_dep.h find_dep.c Makefile.in configure.in \
59 configure makedepf90.1 COPYING NEWS README Makefile.def .depend \
60 $(EXTRA_SRC) install-sh config.h.in config.h
62 OBJ = ${SRC_C:.c=.o}
63 LIBOBJS = @LIBOBJS@
65 .SUFFIXES:
66 .SUFFIXES: .c .o
68 .c.o:
69 $(CC) -c $(CFLAGS) $(CPPFLAGS) $<
71 $(PROG): $(OBJ)
72 $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(OBJ) $(LIBOBJS) $(LIBS)
74 include .depend
76 clean:
77 rm -f *.o $(PROG) gmon.out gmon.sum
78 find . -name 'core' -exec rm {} \;
80 realclean: clean
81 rm -f .depend configure tags config.cache config.log config.status
83 install: $(PROG) makedepf90.1
84 $(INSTALL) -d $(bindir)
85 $(INSTALL_PROGRAM) $(PROG) $(bindir)
86 $(INSTALL) -d $(mandir)/man1
87 $(INSTALL_DATA) makedepf90.1 $(mandir)/man1
88 install-strip: $(PROG) makedepf90.1
89 $(INSTALL) -d $(bindir)
90 $(INSTALL_PROGRAM) -s $(PROG) $(bindir)
91 $(INSTALL) -d $(mandir)/man1
92 $(INSTALL_DATA) makedepf90.1 $(mandir)/man1
94 test: $(PROG)
95 (cd testdir/test1; bash test1.sh)
96 (cd testdir/test2; bash test2.sh)
97 (cd testdir/bayes; bash bayes.sh)
98 (cd testdir/bayes2; bash test.sh)
99 (cd testdir/bayes3; bash bayes3.sh)
100 (cd testdir/bayes4; bash bayes4.sh)
101 (cd testdir/bayes_coco; bash bayes_coco.sh)
102 (cd testdir/ranlib; bash ranlib.sh)
103 (cd testdir/convert; bash convert.sh)
104 (cd testdir/stdtype; bash stdtype.sh)
105 (cd testdir/f90ppr; bash f90ppr.sh)
106 (cd testdir/f90tops; bash f90tops.sh)
107 (cd testdir/e; bash e.sh)
108 (cd testdir/err; bash err.sh)
109 (cd testdir/recur; bash recur.sh)
110 (cd testdir/eol; bash eol.sh)
111 (cd testdir/optI; bash optI.sh)
112 (cd testdir/glurr; bash glurr.sh)
114 depend .depend: lexer.c find_dep.c find_dep.h
115 $(CC) -MM *.c > .depend
117 lexer.c: lexer.l
118 find_dep.h find_dep.c: find_dep.y
120 configure: configure.in
121 autoconf
123 Makefile: Makefile.in configure
124 ./configure
126 Makefile.def: Makefile
127 cp Makefile Makefile.def
129 dist: $(DISTFILES)
130 if [ -d makedepf90-$(VERSION) -o -f makedepf90-$(VERSION) ]; then \
131 rm -rf makedepf90-$(VERSION); \
133 mkdir makedepf90-$(VERSION)
134 cp $(DISTFILES) makedepf90-$(VERSION)
135 tar zcvf makedepf90-$(VERSION).tar.gz makedepf90-$(VERSION)
136 rm -rf makedepf90-$(VERSION)
138 wcl:
139 wc -l $(SRC) $(EXTRA_SRC)