head     1.9893;
access   ;
symbols  ;
locks    ;comment  @@;


1.9893
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.9891;

1.9891
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.9889;

1.9889
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.9884;

1.9884
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.4409;

1.4409
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.2513;

1.2513
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.1658;

1.1658
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.1617;

1.1617
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.1593;

1.1593
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.1580;

1.1580
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.1571;

1.1571
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.1355;

1.1355
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.1352;

1.1352
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.1319;

1.1319
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.556;

1.556
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.486;

1.486
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.3;

1.3
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     1.2;

1.2
date     2014.08.08.10.25.48;  author p4;  state Exp;
branches ;
next     ;


desc
@@


1.9893
log
@@
text
@#
# Jamfile to build Jam (a make(1)-like program)
#
# There are no user-serviceable parts in this file.
#
# Put executables in platform-specific  subdirectory.

if $(VMS) 	{ LOCATE_TARGET ?= [.binvms] ; }
else if $(MAC) 	{ LOCATE_TARGET ?= :bin.mac ; }
else 		{ LOCATE_TARGET ?= bin.$(OSFULL[1]:L) ; }

# Leave generated source in current directory; it would be nice to use
# these lines below to build the source into the platform-specific
# directory, but getting scan.c to include the right jambase.h is
# hard: with ""'s, it always gets the bootstrap version; with <>'s,
# it won't find the bootstrap version.

# SEARCH_SOURCE ?= $(LOCATE_TARGET) $(DOT) ;
# LOCATE_SOURCE ?= $(LOCATE_TARGET) ;

#
# We have some different files for UNIX, VMS, and NT.
#

if $(NT) 	{ code = execunix.c filent.c pathunix.c ; } 
else if $(MINGW) { code = execunix.c filent.c pathunix.c ; } 
else if $(OS2)	{ code = execunix.c fileos2.c pathunix.c ; } 
else if $(VMS) 	{ code = execvms.c filevms.c pathvms.c ; } 
else if $(AS400) { code = execas400.c fileunix.c pathunix.c ; }
else if $(MAC)	{ code = execmac.c filemac.c pathmac.c ; }
else 		{ code = execunix.c fileunix.c pathunix.c ; }

# For jam profiling/debugging.

if $(PROFILE)
{
	CCFLAGS += -pg ;
	LINKFLAGS += -pg ;
	LOCATE_TARGET = $(LOCATE_TARGET)/pg ;
}

if $(DEBUG)
{
	CCFLAGS += -g ;
	LINKFLAGS += -g ;
	LOCATE_TARGET = $(LOCATE_TARGET)/g ;
}

# We have to signal jam.h for these

if $(OS) = NT
{
	CCFLAGS += /MT ;
}

# Do we know yacc?

if $(YACC) 	{ code += jamgram.y ; }
else            { code += jamgram.c ; }

#
# Build the jamgram.y from the jamgram.yy
# yyacc is a slippery script that makes grammars a little
# easier to read/maintain.
#

if $(YACC) && $(SUFEXE) = ""
{
	GenFile jamgram.y jamgramtab.h : yyacc jamgram.yy ;
}

#
# How to build the compiled in jambase.
#

Main		mkjambase : mkjambase.c ;

if $(VMS)
{
	CC = cxx ;
	LINK = cxxlink ;
	CCFLAGS += /define=VMS ;
	CCFLAGS on jamgram$(SUFOBJ) += /NOOPTIMIZE ;
}

#
# The guts of the Jamfile: how to build Jam
#

Main 		jam : jam.c jambase.c ;
LinkLibraries 	jam : libjam.a ;
GenFile 	jambase.c : mkjambase Jambase ;

Library         libjam.a :
		    builtins.c command.c compile.c $(code) expand.c
		    glob.c hash.c headers.c lists.c make.c make1.c
		    newstr.c option.c parse.c regexp.c rules.c scan.c
		    search.c timestamp.c variable.c ;


if $(BINDIR) 	{ InstallBin $(BINDIR) : jam ; }

#
# Distribution making from here on out.
#

ALLSOURCE =
	Build.com Build.mpw Jam.html Jambase Jambase.html Jamfile
	Jamfile.html Makefile Porting README RELNOTES builtins.c builtins.h
	command.c command.h compile.c compile.h execcmd.h execmac.c
	execunix.c execvms.c expand.c expand.h filemac.c filent.c
	fileos2.c filesys.h fileunix.c filevms.c glob.c hash.c hash.h
	headers.c headers.h jam.c jam.h jambase.c jambase.h jamgram.c
	jamgram.h jamgram.y jamgram.yy jamgramtab.h lists.c lists.h
	make.c make.h make1.c mkjambase.c newstr.c newstr.h option.c
	option.h parse.c parse.h patchlevel.h pathmac.c pathsys.h
	pathunix.c pathvms.c regexp.c regexp.h rules.c rules.h scan.c
	scan.h search.c search.h timestamp.c timestamp.h variable.c
	variable.h yyacc ;

rule Ball
{
	NotFile balls ;
	Depends balls : $(<) ;

	DEPENDS $(<) : $(>) ;

	switch $(<) 
	{
	case *.tar : Tar $(<) : $(>) ;
	case *.shar : Shar $(<) : $(>) ;
	case *.zip : Zip $(<) : $(>) ;
	}
}

VERSION = jam-2.5 ;

actions Tar
{
	ln -s . $(VERSION)
	tar cvhf $(<) $(VERSION)/$(>)
	rm $(VERSION)
}

actions Shar
{
	shar $(>) > $(<)
}

actions Zip
{
	zip $(<) $(>) 
}

Ball $(VERSION).shar : $(ALLSOURCE) ;
Ball $(VERSION).tar : $(ALLSOURCE) ;
Ball $(VERSION).zip : $(ALLSOURCE) ;
@


1.9891
log
@@
text
@d51 4
a54 1
if $(OS) = NT 			{ CCFLAGS += /MT /DNT ; }
@


1.9889
log
@@
text
@d51 1
a51 1
if $(OS) = NT 			{ CCFLAGS += /DNT ; }
@


1.9884
log
@@
text
@d80 1
@


1.4409
log
@@
text
@d29 1
@


1.2513
log
@@
text
@d131 1
a131 1
VERSION = jam-2.5rc1 ;
@


1.1658
log
@@
text
@d131 1
a131 1
VERSION = jam-2.4 ;
@


1.1617
log
@@
text
@d131 1
a131 1
VERSION = jam-2.4rc2 ;
@


1.1593
log
@@
text
@d131 1
a131 1
VERSION = jam-2.4rc1 ;
@


1.1580
log
@@
text
@d131 1
a131 1
VERSION = jam-2.4beta ;
@


1.1571
log
@@
text
@d131 1
a131 1
VERSION = jam-2.4-dev ;
@


1.1355
log
@@
text
@d26 1
@


1.1352
log
@@
text
@@


1.1319
log
@@
text
@@


1.556
log
@@
text
@d31 16
d62 1
a62 1
if $(UNIX) && $(YACC)
d73 7
d88 5
a92 5
Library         libjam.a : 
		    command.c compile.c $(code) expand.c glob.c
		    hash.c headers.c lists.c make.c make1.c newstr.c
		    option.c parse.c regexp.c rules.c scan.c search.c
		    timestamp.c variable.c ;
d103 10
a112 9
	Jamfile.html Makefile Porting README RELNOTES command.c command.h
	compile.c compile.h execcmd.h execmac.c execunix.c execvms.c
	expand.c expand.h filemac.c filent.c fileos2.c filesys.h fileunix.c
	filevms.c glob.c hash.c hash.h headers.c headers.h jam.c jam.h
	jambase.c jambase.h jamgram.c jamgram.h jamgram.y jamgram.yy
	jamgramtab.h lists.c lists.h make.c make.h make1.c mkjambase.c
	newstr.c newstr.h option.c option.h parse.c parse.h patchlevel.h
	pathmac.c pathunix.c pathvms.c regexp.c regexp.h rules.c rules.h
	scan.c scan.h search.c search.h timestamp.c timestamp.h variable.c
d130 1
a130 1
VERSION = jam-2.3.2 ;
@


1.486
log
@@
text
@d106 1
a106 1
VERSION = jam-2.3 ;
@


1.3
log
@@
text
@a6 1
# If $(OSVER) isn't set, second value is used.
d8 3
a10 3
if $(VMS) {	LOCATE_TARGET ?= [.binvms] ; }
else if $(MAC) { LOCATE_TARGET ?= :bin.mac ; }
else { 		LOCATE_TARGET ?= bin.$(OSFULL[1]:L) ; }
d31 7
a37 1
if $(UNIX) 	{ code += jamgram.y ; }
d40 5
d46 4
a49 3
if $(OS) = NT { CCFLAGS += /DNT ; }
if $(OS) = MVS { CCFLAGS += -DMVS ; }
if $(OS)$(OSVER) = AIX41 { CCFLAGS += -D_AIX41 ; }
a70 8
#
# On UNIX, we install this stuff for easy use.
#

if $(UNIX)
{
	InstallBin $(BINDIR) : jam ;
}
d72 1
a72 11
#### --- cut

if $(UNIX) 
{
	GenFile jamgram.y jamgramtab.h : yyacc jamgram.yy ;
}

rule TempCopy
{
	DEPENDS $(<) : $(>) ;
}
d74 3
a76 4
actions TempCopy
{
	cp $(>) $(<)
}
d80 10
a89 11
	Jamfile.html Jamlang.html Makefile Porting README RELNOTES
	command.c command.h compile.c compile.h execcmd.h execmac.c
	execunix.c execvms.c expand.c expand.h filemac.c filent.c
	fileos2.c filesys.h fileunix.c filevms.c glob.c hash.c
	hash.h headers.c headers.h jam.c jam.h jambase.c jambase.h
	jamgram.c jamgram.h jamgram.y jamgramtab.h lists.c lists.h
	make.c make.h make1.c mkjambase.c newstr.c newstr.h option.c
	option.h parse.c parse.h patchlevel.h pathmac.c pathunix.c
	pathvms.c regexp.c regexp.h rules.c rules.h scan.c scan.h
	search.c search.h timestamp.c timestamp.h variable.c
	variable.h ;
a97 2
	PreBall $(<) ;

a103 2

	PostBall $(<) ;
d106 1
a106 12
actions PreBall 
{
	mv Jamfile Jamfile.sav
	sed '/--- cut/,$d' Jamfile.sav > Jamfile
}

actions PostBall 
{
	mv Jamfile.sav Jamfile
}

VERSION = jam-2.2 ;
a127 2


@


1.2
log
@@
text
@a5 8
# Some sections have been hidden because their targets are in
# managed files, and overwriting them unecessarily causes
# problems. To reveal them:
#
#	- set DO_GRAMMAR if you want make new jamgram.* files
#
#	- set DO_JAMBASE if you want jam to make new jambase.c
#
d32 2
a33 2
if $(DO_GRAMMAR) { code += jamgram.y ; }
else             { code += jamgram.c ; }
d52 1
a52 5

if $(DO_JAMBASE)
{
    GenFile 	jambase.c : mkjambase Jambase ;
}
d71 1
a71 1
if $(UNIX) && $(DO_GRAMMAR)
d102 3
d141 1
a141 1
	shar -l97 -o $(<) $(>) 
d149 1
a149 1
Ball SHAR : $(ALLSOURCE) ;
d151 1
a151 2
Depends TAR : $(VERSION).tar ;
Ball ZIP : $(ALLSOURCE) ;
@
