Commit aca7d7e6 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

compiles and links with gfortran

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3056
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 81dae5a8
#
# $Id: Makefile,v 1.3 2007-10-02 18:49:11 tforb Exp $
# $Id: Makefile,v 1.4 2010-06-08 15:28:26 tforb Exp $
#
# Makefile for src/synt/tt
#
......@@ -10,7 +10,9 @@ TTLIB=-lttsynt -L$(LOCLIBDIR)
F2CLIB=-lf2c -lm -L$(SERVERLIBDIR)
LIBPGPLOT=-lf2cpgplot52 -L$(SERVERLIBDIR) -lX11 -L/usr/X11/lib
F2CFLAGS=-u -f
FFLAGS += -ff2c -Wall -ffixed-line-length-0 -fno-backslash $(FLAGS)
ifeq ($(TF_FALLBACK),yes)
%.o77: %.f
g77 $(OPTFLAG) -c -o $@ $< $(G77FLAGS)
......@@ -18,6 +20,10 @@ F2CFLAGS=-u -f
f2c $(F2CFLAGS) $<
$(CC) $(CFLAGS) $(<:.f=.c) -c
@rm $(<:.f=.c)
else
%.o: %.f
$(FC) -c -o $@ $< $(FFLAGS)
endif
flist: Makefile *.f; echo $^ | tr ' ' '\n' | sort > $@
edit: flist; vim $<
......@@ -25,6 +31,7 @@ edit: flist; vim $<
clean:
-/bin/rm *.o *.bak
ifeq ($(TF_FALLBACK),yes)
lazek: %: %.o
$(CC) -o $@ $< $(RRLIB) $(TFLIB) $(F2CLIB) -static
newprog $@
......@@ -32,3 +39,8 @@ lazek: %: %.o
ttplot: %: %.o
$(CC) -o $@ $< $(TTLIB) $(TFLIB) $(LIBPGPLOT) $(F2CLIB)
newprog $@
else
ttplot: %: %.o
$(FC) -o $@ $< -L$(LOCLIBDIR) $(TTLIB) $(TFLIB) -l$(TF_g77_PGPLOT) -lX11 -L/usr/X11/lib
/bin/mv -fv $@ $(LOCBINDIR)
endif
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.3 2010-06-08 15:21:36 tforb Exp $
# $Id: Makefile,v 1.4 2010-06-08 15:28:35 tforb Exp $
#
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
#
......@@ -20,6 +20,7 @@ PGPLOTLIB77=-lpgplot52 -lX11 -L/usr/X11/lib
CC=gcc
INCDIR=-I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
OPTFLAG=-O2
FFLAGS += -ff2c -Wall -ffixed-line-length-0 -fno-backslash $(FLAGS)
LIBSRC=$(wildcard *.f)
LIBOBS=$(patsubst %.f,%.o,$(LIBSRC))
......@@ -35,7 +36,7 @@ edit: flist; vim $<
.PHONY: clean
clean: ;
-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
-/bin/rm -vf flist
-/bin/rm -vf flist *.o
libttsynt.a: $(LIBOBS)
ar rcv libttsynt.a $(LIBOBS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment