head	1.2;
access;
symbols
	Jan97:1.2;
locks; strict;
comment	@# @;


1.2
date	95.06.09.14.11.17;	author keller;	state Exp;
branches;
next	1.1;

1.1
date	95.06.08.15.37.55;	author keller;	state Exp;
branches;
next	;


desc
@Script for adapting Makefiles to external environment during development.
@


1.2
log
@Some minor improvements in Makefile-scheme (Makefile, compile,
export).
@
text
@#! /bin/make -f
######################################################################
# Project:	Parallaxis-III
# Filename:	export
# Autor:	Hartmut Keller
# Datum:	Freitag,  2. Juni 1995, 18:59:14
#
# Beschreibung:
# ------------
# Dieses makefile veraendert das Makefile von Parallaxis so ab, dass
# es auf unsere lokalen Gegebenheiten passt. Anschliessend wird es
# unter dem Namen "makefile" abgespeichert, welches von make dann vor
# dem eigentlichen "Makefile" gefunden wird. "export" kann auch direkt
# wie ein Shell-Script gestartet werden. "export" wird benutzt, um die
# vorcompilierten Versionen zu generieren, die auf den FTP-Server
# kommen.
#
# ANMERKUNG: Dieses File ist nicht dafuer gedacht, irgendwie in ein
# Release aufgenommen zu werden. Es soll nur fuer uns hier lokal
# die Entwicklung etwas erleichtern, ohne die allgemeinen Pfade, die
# im original Makefile stehen und die fuer die oeffentliche Version
# gedacht sind, veraendern zu muessen.
#
# Benutzung:
# ----------
#    export BV                   -->   Umgebung fuer BV-Pool
#
######################################################################

#----------------------------------------------------------------------
# Version fuer Compilation im BV-Pool, d.h. nur die Dinge fuer's
# compilieren setzen, die Dinge fuer die Installation am Zielort so
# lassen, wie's im Makefile steht. Ausserdem -static compilieren.

BV_CREATE     = C
BV_STDINC     = -I/usr/5include
BV_OPTIONS    = -ansi -O
BV_LINKOPTIONS= -static
BV_REUSEINC   = /usr/local/bv/include/reuse
BV_REUSELIB   = /usr/local/bv/lib.$$$$HOSTTYPE
BV_P3_VERS     = -DC_VERSION

BV:
	sed -e 's|\(Filename.*\)Makefile|\1makefile (created by "export", target BV)|g' \
	    -e 's|^\(CREATE *= *\).*$$|\1$(BV_CREATE)|g' \
	    -e 's|^\(STDINC *= *\).*$$|\1$(BV_STDINC)|g' \
	    -e 's|^\(OPTIONS *= *\).*$$|\1$(BV_OPTIONS)|g' \
	    -e 's|^\(LINKOPTIONS *= *\).*$$|\1$(BV_LINKOPTIONS)|g' \
	    -e 's|^\(REUSEINC *= *\).*$$|\1$(BV_REUSEINC)|g' \
	    -e 's|^\(REUSELIB *= *\).*$$|\1$(BV_REUSELIB)|g' \
	    -e 's|^\(P3_VERS *= *\).*$$|\1$(BV_P3_VERS)|g' \
	    Makefile >makefile


#----------------------------------------------------------------------
# (hier koennte noch eine Version fuer PVM auf Paragon kommen...)

#end of export


@


1.1
log
@export behaves like local, but changes only the paths needed for
compilation. So the executable can be installed in the default paths.
This is only used for development purposes.
@
text
@d35 1
d40 2
a41 1
BV_REUSELIB   = /usr/local/bv/lib
d45 1
d49 3
a51 2
	    -e "s|^\(REUSEINC *= *\).*$$|\1$(BV_REUSEINC)|g" \
	    -e "s|^\(REUSELIB *= *\).*$$|\1$(BV_REUSELIB)|g" \
@
