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

support packages

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: 4533
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 01649d0a
......@@ -56,14 +56,14 @@ install: libraries programs
.PHONY: programs
programs: $(addprefix $(LOCBINDIR)/,$(PROGRAMS))
$(LOCBINDIR)/%: %
mkdir -pv $(LOCBINDIR)
/bin/mv -fv $< $(LOCBINDIR)
mkdir -pv $(dir $@)
/bin/mv -fv $< $@
.PHONY: libraries
libraries: $(addprefix $(LOCLIBDIR)/,$(LIBRARIES))
$(LOCLIBDIR)/%: install-include %
mkdir -pv $(LOCLIBDIR)
/bin/mv -fv $(word 2,$^) $(LOCLIBDIR)
mkdir -pv $(dir $@)
/bin/mv -fv $(word 2,$^) $@
#----------------------------------------------------------------------
# standard edit targets
......@@ -92,8 +92,9 @@ FFLAGS += -ff2c -Wall -ffixed-line-length-none $(FLAGS) \
# use STATIC=-static to produce statically linked binaries
STATIC=
LDFLAGS+=-L$(LOCLIBDIR) $(STATIC)
CPPFLAGS+=-I$(LOCINCLUDEDIR) $(FLAGS)
LDFLAGS=$(addprefix -L,$(LOCLIBDIR) $(subst :, ,$(SERVERLIBDIR))) $(STATIC)
CPPFLAGS=$(addprefix -I,$(LOCINCLUDEDIR) $(subst :, ,$(SERVERINCLUDEDIR))) \
$(FLAGS)
REAMPOBS=refmet_basinf.o refmet_rmod.o refmet_rmain.o refmet_rsource.o refmet_rrcv.o
REFMETOBS=refmet_output.o refmet_preptrace.o refmet_wtrace.o lmath.o\
......@@ -154,5 +155,25 @@ librefread.a: $(LIBREFMETOBS)
ar rcv librefread.a $(LIBREFMETOBS)
ranlib librefread.a
#======================================================================
# create package
# --------------
# is delegated to Makefile.packages
ifdef TF_MAKEPKG
.PHONY: package
package: $(TF_MAKEPKG)
$(MAKE) -f $< \
PACKAGE=refmet \
PACKAGEEXPORT="trunk/src/synt/ref/refmet:src" \
PACKAGETARGETS="src:all" \
PACKAGELIBS="-"
.PHONY: fullpackage
fullpackage: $(TF_MAKEPKG)
$(MAKE) -f $< \
PACKAGE=refmetwithlibs \
PACKAGEEXPORT="trunk/src/synt/ref/refmet:src" \
PACKAGETARGETS="src:all" \
PACKAGELIBS="libemod libsff libtf libsffu libts libaff libtime libgsexx libsffxx libdatrwxx libfapidxx"
endif
# ----- 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