head	1.9;
access;
symbols
	Jan97:1.8
	boston:1.4;
locks; strict;
comment	@# @;


1.9
date	98.02.07.16.05.44;	author keller;	state Exp;
branches;
next	1.8;

1.8
date	96.02.11.19.57.58;	author schwencf;	state Exp;
branches;
next	1.7;

1.7
date	95.08.10.13.09.40;	author wakundju;	state Exp;
branches;
next	1.6;

1.6
date	95.08.09.15.56.58;	author wakundju;	state Exp;
branches;
next	1.5;

1.5
date	95.06.08.15.33.37;	author keller;	state Exp;
branches;
next	1.4;

1.4
date	94.10.19.14.22.35;	author wakundju;	state Exp;
branches;
next	1.3;

1.3
date	94.10.16.20.51.15;	author keller;	state Exp;
branches;
next	1.2;

1.2
date	94.09.28.09.23.05;	author wakundju;	state Exp;
branches;
next	1.1;

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


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


1.9
log
@Path for make modified for BV environment. Now the local makefile can
be run as a command again.
@
text
@#!/usr/ccs/bin/make -f
######################################################################
# Project:	Parallaxis-III
# Filename:	local
# Autor:	Hartmut Keller
# Datum:	Dienstag, 30. Mai 1995, 19:30: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. "local" kann auch direkt
# wie ein Shell-Script gestartet werden.
#
# 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:
# ----------
#    local BV         -->   Umgebung fuer Abt. BV schaffen
#    local PARAGON    -->   Umgebung fuer Paragon schaffen
#
######################################################################

#----------------------------------------------------------------------
# Version fuer BV-Pool, alles nach /usr/local/bv

BV_INC   = /usr/local/bv/include
BV_LIB   = /usr/local/bv/lib.\$$(HOSTTYPE)
BV_BIN   = /usr/local/bv/bin.\$$(HOSTTYPE)
BV_STDINC     = -I/usr/5include
BV_OPTIONS    = -ansi -g -Wall -DDEVELOP -DTCLBROWSER

BV:
	sed -e 's|\(Filename.*\)Makefile|\1makefile (created by "local", target BV)|g' \
	    -e 's|^\(INC *= *\).*$$|\1$(BV_INC)|g' \
	    -e 's|^\(LIB *= *\).*$$|\1$(BV_LIB)|g' \
	    -e 's|^\(BIN *= *\).*$$|\1$(BV_BIN)|g' \
	    -e 's|^\(STDINC *= *\).*$$|\1$(BV_STDINC)|g' \
	    -e 's|^\(OPTIONS *= *\).*$$|\1$(BV_OPTIONS)|g' \
	    Makefile >makefile


#----------------------------------------------------------------------
# Version fuer Paragon:

#PARAGON_INC   = /usr/local/bv/include
#PARAGON_LIB   = /usr/local/bv/lib.\$$(HOSTTYPE)
#PARAGON_BIN   = /usr/local/bv/bin.\$$(HOSTTYPE)

PARAGON_INC   = \$$(HOME)/parallaxis
PARAGON_LIB   = \$$(HOME)/parallaxis
PARAGON_BIN   = \$$(HOME)/parallaxis
PARAGON_OPTIONS    = -Xc -g -DDEVELOP

PARAGON_P3CCPVM = cc
PARAGON_P3LIBPVM = \$$(LIB),$$$$PVM_ROOT/lib

PARAGON_REUSEINC   = \$$(HOME)/reuse
PARAGON_REUSELIB   = \$$(HOME)/reuse
PARAGON_PVMLIB     = \$$(PVM_ROOT)/lib
PARAGON_PVMADDITIONAL = -lpvm3 -lrpc -lnx -lmach3
PARAGON_STANDARDLIBPVM = -lp3_PVM -lm -lpvm3pe -lrpc -lnx -lmach3

PARAGON:
	sed -e 's|\(Filename.*\)Makefile|\1makefile (created by "local", target PARAGON)|g' \
	    -e 's|^\(INC *= *\).*$$|\1$(PARAGON_INC)|g' \
	    -e 's|^\(LIB *= *\).*$$|\1$(PARAGON_LIB)|g' \
	    -e 's|^\(BIN *= *\).*$$|\1$(PARAGON_BIN)|g' \
	    -e 's|^\(P3CCPVM *= *\).*$$|\1$(PARAGON_P3CCPVM)|g' \
	    -e 's|^\(P3LIBPVM *= *\).*$$|\1$(PARAGON_P3LIBPVM)|g' \
	    -e 's|^\(OPTIONS *= *\).*$$|\1$(PARAGON_OPTIONS)|g' \
	    -e 's|^\(REUSEINC *= *\).*$$|\1$(PARAGON_REUSEINC)|g' \
	    -e 's|^\(REUSELIB *= *\).*$$|\1$(PARAGON_REUSELIB)|g' \
	    -e 's|^\(PVMLIB *= *\).*$$|\1$(PARAGON_PVMLIB)|g' \
	    -e 's|^\(PVMADDITIONAL *= *\).*$$|\1$(PARAGON_PVMADDITIONAL)|g' \
	    -e 's|^\(STANDARDLIBPVM *= *\).*$$|\1$(PARAGON_STANDARDLIBPVM)|g' \
	    Makefile >makefile

#end of local


@


1.8
log
@the developers's option DTCLBROWSER is added.
@
text
@d1 1
a1 1
#! /bin/make -f
@


1.7
log
@Added some stuff for PARAGON-environement.
@
text
@d36 1
a36 1
BV_OPTIONS    = -ansi -g -Wall -DDEVELOP
@


1.6
log
@Adapted some files to the new compiling-environement on the paragon.
@
text
@d60 3
d67 1
a67 1
PARAGON_STANDARDLIBPVM = -lp3 -lm -lpvm3pe -lrpc -lnx -lmach3
d74 2
@


1.5
log
@The Makefile-scheme has changed again. Now there's again only one
Makefile, but now assisted by a small shell script "compile". The
different Makefiles (Makefile.{C,MPL,PVM}) are now obsolete.
@
text
@d51 3
a53 4
PARAGON_INC   = /usr/local/bv/include
PARAGON_LIB   = /usr/local/bv/lib.\$$(HOSTTYPE)
PARAGON_BIN   = /usr/local/bv/bin.\$$(HOSTTYPE)
PARAGON_OPTIONS    = -ansi -g -Wall -DDEVELOP
d55 8
a62 2
PARAGON_REUSEINC   = $$HOME/reuse
PARAGON_REUSELIB   = $$HOME/reuse
d74 1
@


1.4
log
@Changed include- and lib-paths for the paragon. Added library -lmach3 to
PVMPARAGONP3STDLIB.
@
text
@d6 1
a6 1
# Datum:	Donnerstag, 29. September 1994, 18:06:18
d10 5
a14 5
# Dieses makefile veraendert das entsprechende Makefile.{C,MPL,PVM}
# auf unsere lokalen Gegebenheiten und speichert es unter dem Namen
# "makefile", welches von make dann vor dem eigentlichen "Makefile"
# gefunden wird. "local" kann auch direkt wie ein Shell-Script
# gestartet werden.
d17 4
a20 2
# Release aufgenommen zu werden. Es ist nur fuer uns hier lokal
# waehrend der Entwicklungsphase.
d23 3
a25 5
# ----
#    local C                    -->   C-Umgebung schaffen
#    local MPL                  -->   MPL-Umgebung schaffen
#    local PVMSUN4		-->   PVM-Umgebung auf SUN4 schaffen
#    local PVMPARAGON		-->   PVM-Umgebung auf Paragon schaffen
a26 2
# Das entstehende makefile erlaubt wieder make p3, make (=make all),
# make p3c, ..., d.h. die einzelnen Targets sind sichtbar
d30 1
a30 1
# C-version (Harald)
d32 14
a45 18
CP3INC      = /usr/local/bv/include
CP3LIB      = /usr/local/bv/lib
CSTDINC     = /usr/5include
COPTIONS    = -ansi -g -Wall -DDEVELOP
CLINKOPTIONS=
CREUSEINC   = /usr/local/bv/include/reuse
CREUSELIB   = /usr/local/bv/lib

C:
	sed -e "s|Makefile.C|makefile (created by 'local', target C)|g" \
	    -e "s|^\(P3INC *= *\).*$$|\1$(CP3INC)|g" \
	    -e "s|^\(P3LIB *= *\).*$$|\1$(CP3LIB)|g" \
	    -e "s|^\(STDINC *= *\).*$$|\1$(CSTDINC)|g" \
	    -e "s|^\(OPTIONS *= *\).*$$|\1$(COPTIONS)|g" \
	    -e "s|^\(LINKOPTIONS *= *\).*$$|\1$(CLINKOPTIONS)|g" \
	    -e "s|^\(REUSEINC *= *\).*$$|\1$(CREUSEINC)|g" \
	    -e "s|^\(REUSELIB *= *\).*$$|\1$(CREUSELIB)|g" \
	    Makefile.C >makefile
d49 1
a49 1
# MPL-version (Hartmut)
d51 21
a71 71
MPLP3INC      = /usr/local/bv/include
MPLP3LIB      = /usr/local/bv/lib
MPLSTDINC     = /usr/5include
MPLOPTIONS    = -ansi -g -Wall -DDEVELOP
MPLLINKOPTIONS=
MPLREUSEINC   = /usr/local/bv/include/reuse
MPLREUSELIB   = /usr/local/bv/lib.$$(HOSTTYPE)

MPL:
	sed -e "s|Makefile.MPL|makefile (created by 'local', target MPL)|g" \
	    -e "s|^\(P3INC *= *\).*$$|\1$(MPLP3INC)|g" \
	    -e "s|^\(P3LIB *= *\).*$$|\1$(MPLP3LIB)|g" \
	    -e "s|^\(STDINC *= *\).*$$|\1$(MPLSTDINC)|g" \
	    -e "s|^\(OPTIONS *= *\).*$$|\1$(MPLOPTIONS)|g" \
	    -e "s|^\(LINKOPTIONS *= *\).*$$|\1$(MPLLINKOPTIONS)|g" \
	    -e "s|^\(REUSEINC *= *\).*$$|\1$(MPLREUSEINC)|g" \
	    -e "s|^\(REUSELIB *= *\).*$$|\1$(MPLREUSELIB)|g" \
	    -e "s|^\(include *\)Common|\1myCommon|g" \
	    -e "s|^\(all.*\)\($$(SYSLIB).*\)$$|\1#\2|g" \
	    Makefile.MPL >makefile


#----------------------------------------------------------------------
# PVM-version SUN4 (Juergen)

PVMSUN4P3INC      = /usr/local/bv/include
PVMSUN4P3LIB      = /usr/local/bv/lib
PVMSUN4STDINC     = /usr/5include
PVMSUN4OPTIONS    = -ansi -g -Wall -DDEVELOP
PVMSUN4LINKOPTIONS=
PVMSUN4REUSEINC   = /usr/local/bv/include/reuse
PVMSUN4REUSELIB   = /usr/local/bv/lib
PVMSUN4PVMLIB     = $$(PVM_ROOT)/lib/SUN4

PVMSUN4:
	sed -e "s|Makefile.PVM|makefile (created by 'local', target PVMSUN4)|g" \
	    -e "s|^\(P3INC *= *\).*$$|\1$(PVMSUN4P3INC)|g" \
	    -e "s|^\(P3LIB *= *\).*$$|\1$(PVMSUN4P3LIB)|g" \
	    -e "s|^\(STDINC *= *\).*$$|\1$(PVMSUN4STDINC)|g" \
	    -e "s|^\(OPTIONS *= *\).*$$|\1$(PVMSUN4OPTIONS)|g" \
	    -e "s|^\(LINKOPTIONS *= *\).*$$|\1$(PVMSUN4LINKOPTIONS)|g" \
	    -e "s|^\(REUSEINC *= *\).*$$|\1$(PVMSUN4REUSEINC)|g" \
	    -e "s|^\(REUSELIB *= *\).*$$|\1$(PVMSUN4REUSELIB)|g" \
	    -e "s|^\(PVMLIB *= *\).*$$|\1$(PVMSUN4PVMLIB)|g" \
	    Makefile.PVM >makefile

#----------------------------------------------------------------------
# PVM-version PARAGON (Juergen)

PVMPARAGONP3INC      = /usr/local/bv/include
PVMPARAGONP3LIB      = /usr/local/bv/lib
PVMPARAGONSTDINC     = /usr/include
PVMPARAGONOPTIONS    = -ansi -g -Wall -DDEVELOP
PVMPARAGONLINKOPTIONS=
PVMPARAGONREUSEINC   = $(HOME)/reuse
PVMPARAGONREUSELIB   = $(HOME)/reuse
PVMPARAGONPVMADDITIONAL = -lpvm3 -lrpc -lnx -lmach3
PVMPARAGONP3STDLIB   = -lp3 -lm -lpvm3pe -lrpc -lnx -lmach3

PVMPARAGON:
	sed -e "s|Makefile.PVM|makefile (created by 'local', target PVMPARAGON)|g" \
	    -e "s|^\(P3INC *= *\).*$$|\1$(PVMPARAGONP3INC)|g" \
	    -e "s|^\(P3LIB *= *\).*$$|\1$(PVMPARAGONP3LIB)|g" \
	    -e "s|^\(STDINC *= *\).*$$|\1$(PVMPARAGONSTDINC)|g" \
	    -e "s|^\(OPTIONS *= *\).*$$|\1$(PVMPARAGONOPTIONS)|g" \
	    -e "s|^\(LINKOPTIONS *= *\).*$$|\1$(PVMPARAGONLINKOPTIONS)|g" \
	    -e "s|^\(REUSEINC *= *\).*$$|\1$(PVMPARAGONREUSEINC)|g" \
	    -e "s|^\(REUSELIB *= *\).*$$|\1$(PVMPARAGONREUSELIB)|g" \
	    -e "s|^\(PVMADDITIONAL *= *\).*$$|\1$(PVMPARAGONPVMADDITIONAL)|g" \
	    -e "s|^\(P3STDLIB *= *\).*$$|\1$(PVMPARAGONP3STDLIB)|g" \
	    Makefile.PVM >makefile
@


1.3
log
@The library cannot be created in the Common file as it is different
for every version. Some minor changes in Makefile.C, Makefile.MPL,
Makefile.PVM, Common, and local.
@
text
@d114 1
a114 1
PVMPARAGONP3STDLIB   = -lp3 -lm -lpvm3pe -lrpc -lnx
@


1.2
log
@PVMPARAGONREUSEINC + LIB are now set correctly.
Changed PVMPARAGONSTDLIB to PVMPARAGONADDITIONAL so that now sed can find and
exchange this line with the correct libraries.
Finally added to PVMPARAGONADDITIONAL the -lmach3 library. I don't know why
this is now necessary. Probably because of the new installed
message-coprocessors on the Paragon.
@
text
@d1 1
a1 1
#!/bin/make -f
d6 1
a6 1
# Datum:	Montag, 12. September 1994, 21:16:35
d63 1
a63 1
MPLREUSELIB   = /usr/local/bv/lib
d74 2
@


1.1
log
@Another version of the makefiles. The PVM version needed some
modification. Now there's a script "local" to modify the makefiles
to the local environment during development.
Some minor changes on all versions of the makefiles.
@
text
@d109 3
a111 3
PVMPARAGONREUSEINC   = /usr/local/bv/include/reuse
PVMPARAGONREUSELIB   = /usr/local/bv/lib
PVMPARAGONPVMSTDLIB  = -lpvm3 -lrpc -lnx
d123 1
a123 1
	    -e "s|^\(PVMSTDLIB *= *\).*$$|\1$(PVMPARAGONPVMSTDLIB)|g" \
@
