1 # Makefile for GNU F77 compiler runtime, libc interface.
2 # Copyright (C) 1995-1997 Free Software Foundation, Inc.
3 # Contributed by Dave Love (d.love@dl.ac.uk).
5 #This file is part of GNU Fortran libU77 library.
7 #This library is free software; you can redistribute it and/or modify
8 #it under the terms of the GNU Library General Public License as
9 #published by the Free Software Foundation; either version 2, or (at
10 #your option) any later version.
12 #GNU Fortran is distributed in the hope that it will be useful, but
13 #WITHOUT ANY WARRANTY; without even the implied warranty of
14 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 #Library General Public License for more details.
17 #You should have received a copy of the GNU General Public License
18 #along with GNU Fortran; see the file COPYING. If not, write to
19 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #### Start of system configuration section. ####
28 # The _FOR_TARGET things are appropriate for a cross-make, passed by the
31 CC
= $(GCC_FOR_TARGET
)
32 CFLAGS
= @CFLAGS@
$(GCC_FLAGS
)
36 # f2c.h should already be installed in xgcc's include directory but add that
37 # to -I anyhow in case not using xgcc. fio.h is in libI77. We need config.h
39 ALL_CFLAGS
= -I.
-I
$(srcdir) -I
$(srcdir)/..
/libI77
-I..
/..
/..
/include $(CPPFLAGS
) $(DEFS
) $(CFLAGS
)
43 RANLIB_TEST
= @RANLIB_TEST@
51 $(CC
) -c
-DSkip_f2c_Undefs
$(ALL_CFLAGS
) $(CGFLAGS
) $<
53 OBJS
= VersionU.o gerror_.o perror_.o ierrno_.o itime_.o time_.o \
54 unlink_.o fnum_.o getpid_.o getuid_.o getgid_.o kill_.o rand_.o \
55 srand_.o irand_.o sleep_.o idate_.o ctime_.o etime_.o \
56 dtime_.o isatty_.o ltime_.o fstat_.o stat_.o \
57 lstat_.o access_.o link_.o getlog_.o ttynam_.o getcwd_.o symlnk_.o \
58 vxttime_.o vxtidate_.o gmtime_.o fdate_.o secnds_.o \
60 chdir_.o chmod_.o lnblnk_.o hostnm_.o rename_.o fgetc_.o fputc_.o \
61 umask_.o sys_clock_.o date_.o second_.o flush1_.o mclock_.o \
63 SRCS
= Version.c gerror_.c perror_.c ierrno_.c itime_.c time_.c \
64 unlink_.c fnum_.c getpid_.c getuid_.c getgid_.c kill_.c rand_.c \
65 srand_.c irand_.c sleep_.c idate_.c ctime_.c etime_.c \
66 dtime_.c isatty_.c ltime_.c fstat_.c stat_.c \
67 lstat_.c access_.c link_.c getlog_.c ttynam_.c getcwd_.c symlnk_.c \
68 vxttime_.c vxtidate_.c gmtime_.c fdate_.c secnds_.c \
70 chdir_.c chmod_.c lnblnk_.c hostnm_.c rename_.c fgetc_.c fputc_.c \
71 umask_.c sys_clock_.c date_.c second_.c flush1_.c mclock_.c \
74 F2C_H
= ..
/..
/..
/include/f2c.h
79 $(CC
) -c
$(CGFLAGS
) -o
$@
$(srcdir)/Version.c
82 lint
$(CFLAGS
) $(SRCS
)
88 -rm -f config.log a.out
90 distclean realclean maintainer-clean
: clean
91 -rm -f config.h Makefile config.status config.cache stage?
include
93 $(OBJS
): $(F2C_H
) config.h
96 -$(G77DIR
)g77
--driver
=$(G77DIR
)/xgcc
-B
$(G77DIR
) -g
$(srcdir)/u77-test.f
$(lib
) && .
/a.out
103 fnum_.o
: fnum_.c
$(srcdir)/..
/libI77
/fio.h
114 isatty_.o
: isatty_.c
$(srcdir)/..
/libI77
/fio.h
135 vxttime_.o
: vxttime_.c
136 vtxidate_.o
: vxtidate_.c
149 sys_clock_.o
: sys_clock_.c
155 .PHONY
: mostlyclean clean distclean maintainer-clean lint
check all