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. ####
30 # f2c.h should already be installed in xgcc's include directory but add that
31 # to -I anyhow in case not using xgcc. fio.h is in libI77. We need config.h
33 ALL_CFLAGS
= -I.
-I
$(srcdir) -I
$(srcdir)/..
/libI77
-I..
$(CPPFLAGS
) $(DEFS
) $(CFLAGS
)
40 $(CC
) -c
-DSkip_f2c_Undefs
$(ALL_CFLAGS
) $<
42 OBJS
= VersionU.o gerror_.o perror_.o ierrno_.o itime_.o time_.o \
43 unlink_.o fnum_.o getpid_.o getuid_.o getgid_.o kill_.o rand_.o \
44 srand_.o irand_.o sleep_.o idate_.o ctime_.o etime_.o \
45 dtime_.o isatty_.o ltime_.o fstat_.o stat_.o \
46 lstat_.o access_.o link_.o getlog_.o ttynam_.o getcwd_.o symlnk_.o \
47 vxttime_.o vxtidate_.o gmtime_.o fdate_.o secnds_.o \
49 chdir_.o chmod_.o lnblnk_.o hostnm_.o rename_.o fgetc_.o fputc_.o \
50 umask_.o sys_clock_.o date_.o second_.o flush1_.o mclock_.o \
52 SRCS
= Version.c gerror_.c perror_.c ierrno_.c itime_.c time_.c \
53 unlink_.c fnum_.c getpid_.c getuid_.c getgid_.c kill_.c rand_.c \
54 srand_.c irand_.c sleep_.c idate_.c ctime_.c etime_.c \
55 dtime_.c isatty_.c ltime_.c fstat_.c stat_.c \
56 lstat_.c access_.c link_.c getlog_.c ttynam_.c getcwd_.c symlnk_.c \
57 vxttime_.c vxtidate_.c gmtime_.c fdate_.c secnds_.c \
59 chdir_.c chmod_.c lnblnk_.c hostnm_.c rename_.c fgetc_.c fputc_.c \
60 umask_.c sys_clock_.c date_.c second_.c flush1_.c mclock_.c \
68 $(CC
) -c
$(CGFLAGS
) -o
$@
$(srcdir)/Version.c
71 lint
$(CFLAGS
) $(SRCS
)
77 -rm -f config.log a.out
79 distclean realclean maintainer-clean
: clean
80 -rm -f config.h Makefile config.status config.cache stage?
include
82 $(OBJS
): $(F2C_H
) config.h
85 -$(G77DIR
)g77
-B
$(G77DIR
) -L..
-g
$(srcdir)/u77-test.f
$(lib
) && .
/a.out
92 fnum_.o
: fnum_.c
$(srcdir)/..
/libI77
/fio.h
103 isatty_.o
: isatty_.c
$(srcdir)/..
/libI77
/fio.h
124 vxttime_.o
: vxttime_.c
125 vtxidate_.o
: vxtidate_.c
138 sys_clock_.o
: sys_clock_.c
144 .PHONY
: mostlyclean clean distclean maintainer-clean lint
check all