Commit 3a4ddfb2 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

[WP] (librefpar): compile library

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.
parent e4dcfec5
......@@ -27,20 +27,12 @@
# prerequisites and installation.
#
# REVISIONS and CHANGES
# 16/06/2005 V1.0 Thomas Forbriger
# 06/12/2007 V1.1 g77 is now default compiler
# 17/12/2007 V1.2 moved to gfortran
# 23/02/2009 V1.3 create package
# 18/09/2010 V1.4 migration to SVN scheme
# discard f2c option (fallback)
# check variables
# no package creation currently
# 17/01/2011 V1.5 distinguish library creation and installation
# 24/09/2014 V1.0 Thomas Forbriger
#
# ============================================================================
#
LIBRARIES=libemod.a
LIBRARIES=librefpar.a
.PHONY: all
all: install
......@@ -91,35 +83,19 @@ CPPFLAGS+=$(addprefix -I,$(LOCINCLUDEDIR) $(subst :, ,$(SERVERINCLUDEDIR))) \
#----------------------------------------------------------------------
LIBEMODSUB=psexdat.o readgemini.o efa.o readrefmet.o earthmod.o \
readanigemini.o
LIBSRC=refmet_rmod.f refmet_rsource.f refmet_rrcv.f \
refmet_intro.f refmet_comments.f
LIBREFMETOBS=$(addprefix sub/,refmet_basinf.o refmet_rmain.o refmet_rmod.o \
refmet_rsource.o refmet_rrcv.o refmet_intro.o refmet_comments.o)
refmet_basinf.f refmet_rmain.f refmet_rmod.f refmet_rsource.f refmet_rrcv.f refmet_intro.f refmet_comments.f
#----------------------------------------------------------------------
doc: $(patsubst %.o,%.doc,$(LIBEMODSUB))
%.doc: %.f
/usr/bin/awk 'BEGIN{ hot=0; } \
/^cS/ { hot=1; \
print " c"; \
print FILENAME; \
print " c"; \
next; } \
/^cE/ { hot=0; } \
{ if (hot==1) { print " " $$0; } }' $^ > $@
LIBOBS=$(patsubst %.s,%.o,$(LIBSRC))
#----------------------------------------------------------------------
%.o: %.f
$(FC) -O2 -o $@ -c $< $(FFLAGS)
librefread.a: $(LIBOBS)
ar rcv libemod.a $(LIBOBS)
ranlib libemod.a
librefpar.a: $(LIBOBS)
ar rcv librefpar.a $(LIBOBS)
ranlib librefpar.a
#---------------------------------------------------------------------
# create package
......@@ -129,9 +105,9 @@ ifdef TF_MAKEPKG
.PHONY: package
package: $(TF_MAKEPKG)
$(MAKE) -f $< \
PACKAGE=librefread \
PACKAGEEXPORT="trunk/src/libs/librefread:src" \
PACKAGETARGETS="src:install: src:doc:" \
PACKAGE=librefpar \
PACKAGEEXPORT="trunk/src/libs/librefpar:src" \
PACKAGETARGETS="src:install:" \
PACKAGELIBS="-"
endif
# ----- END OF Makefile -----
Supports Markdown
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