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

proceeding

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: 2499
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 3a3bb44f
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.12 2007-12-07 08:14:41 tforb Exp $
# $Id: Makefile,v 1.13 2007-12-17 17:04:50 tforb Exp $
#
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
#
......@@ -14,9 +14,13 @@
# had to resolve a specific problem: my library
# procuded object files for Fortran code with the same
# name of the object files of C++ code
# 17/12/2007 V1.2 move to gfortran and 64bit compilation
#
# ============================================================================
#
# NOTICE: fallback solution (f2c is default) can be activated by the
# environment variable TF_FALLBACK
# This option will disappear somewhere in the future!
all: install libfourier.doc
install: install-include libfourier.a libfourierxx.a
......@@ -29,22 +33,15 @@ edit: flist; vim $<
.PHONY: clean
ifdef CROSS_BASE
BINPREFIX=$(CROSS_BASE)/bin/dos-
else
BINPREFIX=
endif
FC=$(BINPREFIX)g77
CC=$(BINPREFIX)gcc
AR=$(BINPREFIX)ar
AS=$(BINPREFIX)as
RANLIB=$(BINPREFIX)ranlib
AR=ar
AS=as
RANLIB=ranlib
F2CLIB=-lm -lf2c -L${SERVERLIBDIR}
F2CFLAGS=-f -u
#CC=gcc
CFLAGS=-O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
CFLAGS += -O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
CPPFLAGS += -O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
FFLAGS += -ff2c -Wall -ffixed-line-length-0 -fno-backslash $(FLAGS)
LIBSRC=$(wildcard *.f)
LIBOBS=$(patsubst %.f,%.o,$(LIBSRC))
......@@ -52,6 +49,7 @@ DOCS=libfourier.doc
docs: $(DOCS)
ifeq ($(TF_FALLBACK),yes)
%.of2c: %.f
f2c $(F2CFLAGS) $<
$(CC) $(CFLAGS) $(<:.f=.c) -c -o $@
......@@ -59,6 +57,10 @@ docs: $(DOCS)
%.o77: %.f
$(FC) $(FFLAGS) -c -o $@ $<
else
%.o: %.f
$(FC) $(FFLAGS) -c -o $@ $<
endif
.PHONY: clean
clean:
......@@ -73,8 +75,12 @@ libfourier.doc: $(LIBSRC) $(wildcard *.inc)
makefdoc.pl $@ $^
ifeq ($(TF_FALLBACK),yes)
libfourier77.a: $(patsubst %.o,%.o77,$(LIBOBS))
libfourier.a: $(patsubst %.o,%.of2c,$(LIBOBS))
else
libfourier.a: $(LIBOBS)
endif
%.a:
$(AR) rcv $@ $^
......@@ -156,10 +162,10 @@ REMCMMNT=remcmmnt
# compiler and preprocessor flags
FLAGS=
CXXFLAGS=-Wall -pedantic $(FLAGS) -O3
CXXFLAGS=-Wall $(FLAGS) -O3
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
#CXXFLAGS += -Wall -pedantic $(FLAGS) -O3
CXXFLAGS += -Wall $(FLAGS) -O3
LDFLAGS += -L$(LOCLIBDIR)
CPPFLAGS += -I$(LOCINCLUDEDIR) $(FLAGS)
LIBOBSXX=$(patsubst %.cc,%.o,$(SRC))
......@@ -226,7 +232,7 @@ cfftwtest: cfftwtest.c
$(CC) -o $@ $< -ldrfftw -ldfftw -lm
cxxfftwtest: cxxfftwtest.cc
$(CXX) -o $@ $< -ldrfftw -ldfftw -lm
$(CXX) -o $@ $< -ltfxx -ldrfftw -ldfftw -lm $(CPPFLAGS) $(LDFLAGS)
#======================================================================
# documentation part
......
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