]> gcc.gnu.org Git - gcc.git/blobdiff - libf2c/libU77/Makefile.in
Makefile.in (install): Don't install if $(libsubdir) is empty...
[gcc.git] / libf2c / libU77 / Makefile.in
index 12d175ac6819184c5b7f120e52a238cf0d849356..c72f2f0a00edb233195850186b9f5cec7e2ac0ec 100644 (file)
@@ -1,37 +1,52 @@
 # Makefile for GNU F77 compiler runtime, libc interface.
-# Copyright (C) 1995-1997 Free Software Foundation, Inc.
+# Copyright (C) 1995-1998 Free Software Foundation, Inc.
 #   Contributed by Dave Love (d.love@dl.ac.uk).
 #
-#This file is part of GNU Fortran libU77 library.
+#This file is part of the GNU Fortran libU77 library.
 #
-#This library is free software; you can redistribute it and/or modify
-#it under the terms of the GNU Library General Public License as
-#published by the Free Software Foundation; either version 2, or (at
-#your option) any later version.
+#The GNU Fortran libU77 library is free software; you can redistribute
+#it and/or modify it under the terms of the GNU Library General Public
+#License as published by the Free Software Foundation; either version 2,
+#or (at your option) any later version.
 #
-#GNU Fortran 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
-#Library General Public License for more details.
+#GNU Fortran 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 Library General Public License for more details.
 #
 #You should have received a copy of the GNU General Public License
 #along with GNU Fortran; see the file COPYING.  If not, write to
-#Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+#02111-1307, USA.
 
-SHELL = /bin/sh
+#### Start of system configuration section. ####
+
+# $(srcdir) must be set to the g77 runtime libF77 source directory
+# (g77/f/runtime/libF77).
 
 srcdir = @srcdir@
 VPATH = @srcdir@
 
-#### Start of system configuration section. ####
-
-CPPFLAGS = @CPPFLAGS@
+# gcc/f/runtime/configure sets this to all the -D options appropriate
+# for the configuration.
 DEFS = @DEFS@
-# f2c.h should already be installed in xgcc's include directory but add that
-# to -I anyhow in case not using xgcc.  fio.h is in libI77.  We need config.h
-# from `.'.
-ALL_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/../libI77 -I.. $(CPPFLAGS) $(DEFS) $(CFLAGS)
-CROSS = @CROSS@
+
+#### End of system configuration section. ####
+
+# Must be passed in explicitly.  Sample values are shown below.
+#CC = /gcc-build-dir/xgcc -B/gcc-build-dir/
+#CFLAGS = -O -g
+#CPPFLAGS = 
+#F2C_H_DIR = /gcc-source-dir/f/runtime
+#G2C_H_DIR = /gcc-build-dir/f/runtime
+#GCC_H_DIR = /gcc-build-dir/include
+
+# fio.h is in libI77.  config.h is in `.'.
+ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR)/libI77 -I$(F2C_H_DIR)/libI77 -I$(G2C_H_DIR) -I$(F2C_H_DIR) -I$(GCC_H_DIR) $(CPPFLAGS) $(DEFS) $(CFLAGS)
+
+# This could probably be done more elegantly, but it's currently
+# just for running the u77-test test.
+G77DIR = ../../../
 
 .SUFFIXES:
 .SUFFIXES: .c .o
@@ -60,36 +75,17 @@ SRCS =  Version.c gerror_.c perror_.c ierrno_.c itime_.c time_.c \
        umask_.c sys_clock_.c date_.c second_.c flush1_.c mclock_.c \
        alarm_.c
 
-F2C_H = ../f2c.h
-
 all: $(OBJS)
 
 VersionU.o: Version.c
-       $(CC) -c $(CGFLAGS) -o $@ $(srcdir)/Version.c
-
-lint:
-       lint $(CFLAGS) $(SRCS)
-
-mostlyclean:
-       -rm -f $(OBJS)
-
-clean: mostlyclean
-       -rm -f config.log a.out
-
-distclean realclean maintainer-clean: clean
-       -rm -f config.h Makefile config.status config.cache stage? include
-
-$(OBJS): $(F2C_H) config.h
-
-check:
-       -$(G77DIR)g77 -B$(G77DIR) -L.. -g $(srcdir)/u77-test.f $(lib) && ./a.out
-       rm -f a.out
+       $(CC) -c $(ALL_CFLAGS) -o $@ $(srcdir)/Version.c
 
+$(OBJS): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h config.h
 access_.o: access_.c
 ctime_.o: ctime_.c
 dtime_.o: dtime_.c
 etime_.o: etime_.c
-fnum_.o: fnum_.c $(srcdir)/../libI77/fio.h
+fnum_.o: fnum_.c $(F2C_H_DIR)/libI77/fio.h
 fstat_.o: fstat_.c
 gerror_.o: gerror_.c
 getcwd_.o: getcwd_.c
@@ -100,7 +96,7 @@ getuid_.o: getuid_.c
 idate_.o: idate_.c
 ierrno_.o: ierrno_.c
 irand_.o: irand_.c
-isatty_.o: isatty_.c $(srcdir)/../libI77/fio.h
+isatty_.o: isatty_.c $(F2C_H_DIR)/libI77/fio.h
 itime_.o: itime_.c
 kill_.o: kill_.c
 link_.o: link_.c
@@ -141,4 +137,11 @@ flush1_.o: flush1_.c
 mclock_.o: mclock_.c
 alarm_.o: alarm_.c
 
-.PHONY: mostlyclean clean distclean maintainer-clean lint check all
+lint:
+       lint $(ALL_CFLAGS) $(SRCS)
+
+check:
+       -$(G77DIR)g77 -B$(G77DIR) -L.. -g $(srcdir)/u77-test.f $(lib) && ./a.out
+       rm -f a.out
+
+.PHONY: lint check all
This page took 0.029889 seconds and 5 git commands to generate.