The first a bug in pax and should be commited to FBSD, too.
[dragonfly.git] / contrib / libf2c / libU77 / Makefile.in
1 # Makefile for GNU F77 compiler runtime, libc interface.
2 # Copyright (C) 1995-1998 Free Software Foundation, Inc.
3 #   Contributed by Dave Love (d.love@dl.ac.uk).
4 #
5 #This file is part of the GNU Fortran libU77 library.
6 #
7 #The GNU Fortran libU77 library is free software; you can redistribute
8 #it and/or modify it under the terms of the GNU Library General Public
9 #License as published by the Free Software Foundation; either version 2,
10 #or (at your option) any later version.
11 #
12 #GNU Fortran is distributed in the hope that it will be useful,
13 #but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #GNU Library General Public License for more details.
16 #
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 #the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 #02111-1307, USA.
21
22 #### Start of system configuration section. ####
23
24 # $(srcdir) must be set to the g77 runtime libU77 source directory
25 srcdir = @srcdir@
26 VPATH = @srcdir@
27
28 # configure sets this to all the -D options appropriate for the
29 # configuration.
30 DEFS = @DEFS@
31 LIBS = @LIBS@
32
33 LIBG2C = ../libg2c.a
34
35 F2C_H_DIR = @srcdir@/..
36 G2C_H_DIR = ..
37 CC = @CC@
38 CFLAGS = @CFLAGS@
39 CPPFLAGS = @CPPFLAGS@
40 AR = @AR@
41 ARFLAGS = rc
42 @SET_MAKE@
43
44 SHELL = /bin/sh
45
46 #### End of system configuration section. ####
47
48 # fio.h is in libI77.  config.h is in `.'.
49 ALL_CFLAGS = -I. -I$(srcdir) -I$(F2C_H_DIR)/libI77 -I$(G2C_H_DIR) \
50              -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(CFLAGS)
51
52 # This could probably be done more elegantly, but it's currently
53 # just for running the u77-test test.
54 G77DIR = ../../../gcc/
55
56 .SUFFIXES:
57 .SUFFIXES: .c .o
58
59 .c.o:
60         $(CC) -c -DSkip_f2c_Undefs $(ALL_CFLAGS) $<
61
62 OBJS =  VersionU.o gerror_.o perror_.o ierrno_.o itime_.o time_.o \
63         unlink_.o fnum_.o getpid_.o getuid_.o getgid_.o kill_.o rand_.o \
64         srand_.o irand_.o sleep_.o idate_.o ctime_.o etime_.o \
65         dtime_.o  isatty_.o ltime_.o fstat_.o stat_.o \
66         lstat_.o access_.o link_.o getlog_.o ttynam_.o getcwd_.o symlnk_.o \
67         vxttime_.o vxtidate_.o gmtime_.o fdate_.o secnds_.o \
68         bes.o dbes.o \
69         chdir_.o chmod_.o lnblnk_.o hostnm_.o rename_.o fgetc_.o fputc_.o \
70         umask_.o sys_clock_.o date_.o second_.o flush1_.o mclock_.o \
71         alarm_.o datetime_.o
72 SRCS =  Version.c gerror_.c perror_.c ierrno_.c itime_.c time_.c \
73         unlink_.c fnum_.c getpid_.c getuid_.c getgid_.c kill_.c rand_.c \
74         srand_.c irand_.c sleep_.c idate_.c ctime_.c etime_.c \
75         dtime_.c isatty_.c ltime_.c fstat_.c stat_.c \
76         lstat_.c access_.c link_.c getlog_.c ttynam_.c getcwd_.c symlnk_.c \
77         vxttime_.c vxtidate_.c gmtime_.c fdate_.c secnds_.c \
78         bes.c dbes.c \
79         chdir_.c chmod_.c lnblnk_.c hostnm_.c rename_.c fgetc_.c fputc_.c \
80         umask_.c sys_clock_.c date_.c second_.c flush1_.c mclock_.c \
81         alarm_.c datetime_.c
82
83 all: ../s-libu77
84
85 ../s-libu77: $(OBJS)
86         echo timestamp > ../s-libu77
87
88 archive:
89         $(AR) $(ARFLAGS) $(LIBG2C) $(OBJS)
90
91 Makefile: Makefile.in config.status
92         $(SHELL) config.status
93
94 config.status: configure
95         rm -f config.cache
96         CONFIG_SITE=no-such-file CC='$(CC)' AR='$(AR)' CFLAGS='$(CFLAGS)' \
97           CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
98
99 ${srcdir}/configure: configure.in
100         cd ${srcdir} && autoconf
101
102 ${srcdir}/config.hin: stamp-h.in
103 ${srcdir}/stamp-h.in: configure.in acconfig.h
104         cd ${srcdir} && autoheader
105         echo timestamp > ${srcdir}/stamp-h.in
106
107 config.h: stamp-h
108 stamp-h: config.hin config.status
109         $(SHELL) config.status
110         echo timestamp > stamp-h
111
112 VersionU.o: Version.c
113         $(CC) -c $(ALL_CFLAGS) -o $@ $(srcdir)/Version.c
114
115 $(OBJS): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h config.h
116 access_.o: access_.c
117 ctime_.o: ctime_.c
118 dtime_.o: dtime_.c
119 etime_.o: etime_.c
120 fnum_.o: fnum_.c $(F2C_H_DIR)/libI77/fio.h
121 fstat_.o: fstat_.c
122 gerror_.o: gerror_.c
123 getcwd_.o: getcwd_.c
124 getgid_.o: getgid_.c
125 getlog_.o: getlog_.c
126 getpid_.o: getpid_.c
127 getuid_.o: getuid_.c
128 idate_.o: idate_.c
129 ierrno_.o: ierrno_.c
130 irand_.o: irand_.c
131 isatty_.o: isatty_.c $(F2C_H_DIR)/libI77/fio.h
132 itime_.o: itime_.c
133 kill_.o: kill_.c
134 link_.o: link_.c
135 loc_.o: loc_.c
136 lstat_.o: lstat_.c
137 ltime_.o: ltime_.c
138 perror_.o: perror_.c
139 qsort.o: qsort.c
140 qsort_.o: qsort_.c
141 rand_.o: rand_.c
142 rename_.o: rename_.c
143 second_.o: second_.c
144 sleep_.o: sleep_.c
145 srand_.o: srand_.c
146 stat_.o: stat_.c
147 symlnk_.o: symlnk_.c
148 time_.o: time_.c
149 ttynam_.o: ttynam_.c
150 unlink_.o: unlink_.c
151 wait_.o: wait_.c
152 vxttime_.o: vxttime_.c
153 vtxidate_.o: vxtidate_.c
154 fdate_.o: fdate_.c
155 gmtime_.o: gmtime_.c
156 secnds_.o: secnds_.c
157 bes.o: bes.c
158 dbes.o: dbes.c
159 lnblnk_.o: lnblnk_.c
160 chmod_.o: chmod_.c
161 chdir_.o: chdir_.c
162 hostnm_.o: hostnm_.c
163 rename_.o: rename_.c
164 fputc_.o: fputc_.c
165 fgetc_.o: fgetc_.c
166 sys_clock_.o: sys_clock_.c
167 date_.o: date_.c
168 umask_.o: umask_.c
169 flush1_.o: flush1_.c
170 mclock_.o: mclock_.c
171 alarm_.o: alarm_.c
172 datetime_.o: datetime_.c
173
174 check:
175         -$(G77DIR)g77 -B$(G77DIR) -L.. -g $(srcdir)/u77-test.f -lg2c $(LIBS) -lm && ./a.out
176         rm -f a.out
177
178 install uninstall install-strip dist installcheck installdirs:
179
180 mostlyclean:
181         rm -f *.o a.out
182
183 clean: mostlyclean
184         rm -f config.log ../s-libu77
185
186 distclean: clean
187         rm -f config.cache config.status Makefile config.h stamp.h \
188           ../s-libu77 configure
189
190 maintainer-clean:
191
192 .PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
193         install-strip dist installcheck installdirs archive