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

targets for remaining old programs newly equipped with libfapidxx

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.
interface are added to the standard targets of Makefiles
Makefiles distinguish between compiltation and installation


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3745
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 382b8b2a
......@@ -14,6 +14,15 @@
# 16/08/2010 V1.0 Thomas Forbriger
#
# ============================================================================
PROGRAMS=fidase fidasex
.PHONY: all
all: install
.PHONY: install
install: $(PROGRAMS)
/bin/mv -fv $^ $(LOCBINDIR)
#
# This is the sequence of standard targets
# ----------------------------------------
......@@ -30,7 +39,7 @@ edit: flist; vim $<
.PHONY: clean
clean: ;
-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
-/bin/rm -vf flist *.o *.d *.a
-/bin/rm -vf flist *.o *.d *.a $(PROGRAMS)
#======================================================================
FLAGS += $(MYFLAGS) -fPIC
......
......@@ -69,7 +69,14 @@
# ============================================================================
#
all: greda gabor phadi hivexpanco hivgabor grereso gaborx phadix gredax
PROGRAMS=greda gabor phadi hivexpanco hivgabor grereso gaborx phadix gredax
.PHONY: all
all: install
.PHONY: install
install: $(PROGRAMS)
/bin/mv -fv $^ $(LOCBINDIR)
#----------------------------------------------------------------------
# standard edit targets
......@@ -82,7 +89,8 @@ edit: flist
vim $<
clean:
-/bin/rm *.o *.bak *.d flist
-/bin/rm *.o *.bak *.d flist $(PROGRAMS)
#----------------------------------------------------------------------
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
......@@ -113,19 +121,16 @@ greda: greda.o greda_phasor.o
$(FC) -o $@ $^ -lsffu -lts -ltf $(LINLIB) \
-lgsl -lgslcblas -ltime -lsff\
-L$(LOCLIBDIR) -L$(SERVERLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
grereso: grereso.o
$(FC) -o $@ $^ -lsffu -lts -ltf $(LINLIB) \
-lgsl -lgslcblas -ltime -lsff\
-L$(LOCLIBDIR) -L$(SERVERLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
hivexpanco hivgabor gabor phadi: %: %.o
$(FC) -o $@ $< -lsffu -lts -ltf $(LINLIB) \
-ltime -lsff $(PGPLOTLIB) \
-L$(LOCLIBDIR) -L$(SERVERLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
# binaries linked against libfapidxx and colleagues, being able to read SU
# data and other formats:
......@@ -134,12 +139,10 @@ gredax: greda.o greda_phasor.o
-lgsl -lgslcblas -ltime -lfapidxx -ldatrwxx -lsffxx -lgsexx\
-ltime++ -laff \
-L$(LOCLIBDIR) -L$(SERVERLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
gaborx phadix: %x: %.o
$(FC) -o $@ $< -lsffu -lts -ltf $(LINLIB) \
-ltime -lfapidxx -ldatrwxx -lsffxx -lgsexx -laff -ltime++ \
$(PGPLOTLIB) \
-L$(LOCLIBDIR) -L$(SERVERLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
# ----- END OF Makefile -----
......@@ -61,7 +61,7 @@ CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
#----------------------------------------------------------------------
clean:
-/bin/rm *.o *.bak *.o77 *.odbg *.f2c.o *.d
-/bin/rm *.o *.bak *.o77 *.odbg *.f2c.o *.d $(PROGRAMS)
echo $(patsubst %.f,%.c,$(wildcard *.f)) | \
xargs --no-run-if-empty rm -fv
......
......@@ -47,7 +47,7 @@
.PHONY: all
all: install
PROGRAMS=refmet refmetx
PROGRAMS=refmet refmetx grema matbau refmat resus
LIBRARIES=librefread.a
.PHONY: install
......@@ -66,7 +66,8 @@ edit: flist; vim $<
.PHONY: clean
clean: subclean
-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
-/bin/rm -vf flist
-/bin/rm -vf flist $(PROGRAMS) $(LIBRARIES)
#----------------------------------------------------------------------
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
......@@ -131,7 +132,6 @@ refmetx:
$(FC) $^ -o $@ -lemod -ltf \
-lfapidxx -ldatrwxx -lsffxx -lgsexx -ltime++ -laff \
-L$(LOCLIBDIR) $(FFLAGS)
/bin/mv -fv $@ $(LOCBINDIR)
resusnoise:
$(FC) $^ -o $@ -lsff -lemod -ltf -lgsl -lgslcblas \
......
......@@ -30,7 +30,14 @@
# ============================================================================
#
all: fidase
PROGRAMS=fidase fidasex
.PHONY: all
all: install fidase.doc
.PHONY: install
install: $(PROGRAMS)
/bin/mv -fv $^ $(LOCBINDIR)
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
......@@ -54,7 +61,7 @@ flist: Makefile $(FIDAOBS:.o=.f) *.inc
edit: flist; vim $<
clean:
-/bin/rm *.o *.bak *.d
-/bin/rm *.o *.bak *.d $(PROGRAMS)
#----------------------------------------------------------------------
......@@ -89,7 +96,6 @@ fidase: $(FIDAOBS)
-ltf -lts -lsffu -ltime_trad -lsff \
$(PGPLOTLIB) $(LINLIB) \
-L$(LOCLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
fidasex: $(FIDAOBS)
$(FC) -o $@ $^ \
......@@ -97,6 +103,5 @@ fidasex: $(FIDAOBS)
-lfapidxx -ldatrwxx -lsffxx -lgsexx -ltime++ -laff \
$(PGPLOTLIB) $(LINLIB) \
-L$(LOCLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
# ----- END OF Makefile -----
......@@ -47,9 +47,14 @@
# ============================================================================
#
PROGRAMS=damplo pamo splot stuplo susplo
PROGRAMS=damplo pamo splot stuplo susplo stuplox damplox
all: $(PROGRAMS)
.PHONY: all
all: install
.PHONY: install
install: $(PROGRAMS)
/bin/mv -fv $^ $(LOCBINDIR)
#----------------------------------------------------------------------
# check environment
......@@ -85,7 +90,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 $(PROGRAMS)
-/bin/rm *.o *.bak *.o77
#----------------------------------------------------------------------
# pattern rules
......@@ -96,19 +101,15 @@ clean: ;
# targets
stuplo splot susplo: %: %.o
$(FC) $< -o $@ -ltf -lsff $(PGPLOTLIB) -L$(LOCLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
pamo damplo: %: %.o
$(FC) $< -o $@ -ltf -lsffu -ltime -lsff $(PGPLOTLIB) -L$(LOCLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
stuplox: %x: %.o
$(FC) $< -o $@ -ltf $(PGPLOTLIB) -L$(LOCLIBDIR) \
-lfapidxx -ldatrwxx -lsffxx -lgsexx -ltime++ -laff
/bin/mv -fv $@ $(LOCBINDIR)
damplox: %x: %.o
$(FC) $< -o $@ -ltf -lsffu -ltime \
-lfapidxx -ldatrwxx -lsffxx -lgsexx -ltime++ -laff \
$(PGPLOTLIB) -L$(LOCLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
# ----- END OF Makefile -----
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