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

provide package targets

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: 3847
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 98d43329
......@@ -67,7 +67,18 @@
#
# ============================================================================
#
all: refract refractx
.PHONY: all
all: install doc
PROGRAMS=refract refractx
.PHONY: install
install:
$(MAKE) $(PROGRAMS)
/bin/mv -fv $(PROGRAMS) $(LOCBINDIR)
.PHONY: doc
doc: functions.doc
#----------------------------------------------------------------------
# standard edit targets
......@@ -83,6 +94,7 @@ clean:
| xargs --no-run-if-empty rm -v
-find . \( -name \*.d -o -name \*.doc \) \
| xargs --no-run-if-empty rm -v
#----------------------------------------------------------------------
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
......@@ -94,6 +106,7 @@ $(call CHECKVARS,TF_LINK_PGPLOT)
FLAGS += $(MYFLAGS)
CFLAGS += -O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR} $(FLAGS)
FFLAGS += -ff2c -Wall -ffixed-line-length-0 -fno-backslash $(FLAGS)
LDFLAGS+=$(addprefix -L,$(LOCLIBDIR) $(subst :, ,$(SERVERLIBDIR)))
REFSUB=refract_readdata.o refract_skipdata.o refract_setdefaults.o \
refract_mpc.o refract_setfullrange.o refract_pgframe.o refract_settracevp.o \
......@@ -131,16 +144,36 @@ functions.doc: $(patsubst %.o,%.f,$(REFOBS))
refract: $(REFOBS)
$(FC) -o refract $(REFOBS) \
-ltf -lsffu -lts -ltime -lsff \
$(TF_LINK_PGPLOT) \
$(TF_LINK_PGPLOT) $(LDFLAGS) \
-L$(LOCLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
refractx: $(REFOBS)
$(FC) -o $@ $(REFOBS) \
-ltf -lsffu -lts -ltime \
-lfapidxx -ldatrwxx -lsffxx -lgsexx -ltime++ -laff -lstdc++ \
$(TF_LINK_PGPLOT) \
$(TF_LINK_PGPLOT) $(LDFLAGS) \
-L$(LOCLIBDIR)
/bin/mv -fv $@ $(LOCBINDIR)
#======================================================================
# create package
# --------------
# is delegated to Makefile.packages
ifdef TF_MAKEPKG
.PHONY: package
package: $(TF_MAKEPKG)
$(MAKE) -f $< \
PACKAGE=refract \
PACKAGEEXPORT="trunk/src/ts/refract:src" \
PACKAGETARGETS="src:all" \
PACKAGELIBS="-"
.PHONY: fullpackage
fullpackage: $(TF_MAKEPKG)
$(MAKE) -f $< \
PACKAGE=refractwithlibs \
PACKAGEEXPORT="trunk/src/ts/refract:src" \
PACKAGETARGETS="src:all" \
PACKAGELIBS="libsff:libtime:libaff:libsffu:libts:libgsexx:libsffxx:libdatrwxx:libtsxx:libtfxx:libtf:libfapidxx"
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