/* * Copyright 1993, 1995 Christopher Seiwald. * * This file is part of Jam - see jam.c for Copyright information. */ /* * jam.h - includes and globals for jam * * 04/08/94 (seiwald) - Coherent/386 support added. * 04/21/94 (seiwald) - DGUX is __DGUX__, not just __DGUX. * 05/04/94 (seiwald) - new globs.jobs (-j jobs) * 11/01/94 (wingerd) - let us define path of Jambase at compile time. * 12/30/94 (wingerd) - changed command buffer size for NT (MS-DOS shell). * 02/22/95 (seiwald) - Jambase now in /usr/local/lib. * 04/30/95 (seiwald) - FreeBSD added. Live Free or Die. * 05/10/95 (seiwald) - SPLITPATH character set up here. * 08/20/95 (seiwald) - added LINUX. * 08/21/95 (seiwald) - added NCR. * 10/23/95 (seiwald) - added SCO. * 01/03/96 (seiwald) - SINIX (nixdorf) added. * 03/13/96 (seiwald) - Jambase now compiled in; remove JAMBASE variable. * 04/29/96 (seiwald) - AIX now has 31 and 42 OSVERs. * 11/21/96 (peterk) - added BeOS with MW CW mwcc * 12/21/96 (seiwald) - OSPLAT now defined for NT. */ # ifdef VMS int unlink( char *f ); /* In filevms.c */ # include <types.h> # include <file.h> # include <stat.h> # include <stdio.h> # include <ctype.h> # include <stdlib.h> # include <signal.h> # include <string.h> # include <time.h> # include <unixlib.h> # ifdef __DECC # define OSSYMS "VMS=true","OS=OPENVMS" # else # define OSSYMS "VMS=true","OS=VMS" # endif # define MAXLINE 1024 /* longest 'together' actions */ # define SPLITPATH ',' # define EXITOK 1 # define EXITBAD 0 # else # ifdef NT # include <fcntl.h> # include <stdlib.h> # include <stdio.h> # include <ctype.h> # include <malloc.h> # include <memory.h> # include <signal.h> # include <string.h> # include <time.h> # define OSSYMS "NT=true","OS=NT" # define SPLITPATH ';' # define MAXLINE 996 /* longest 'together' actions */ # define EXITOK 0 # define EXITBAD 1 # else # ifdef __OS2__ # include <fcntl.h> # include <stdlib.h> # include <stdio.h> # include <ctype.h> # include <malloc.h> # include <signal.h> # include <string.h> # include <time.h> # define OSSYMS "OS2=true","OS=OS2" # define SPLITPATH ';' # define MAXLINE 996 /* longest 'together' actions */ # define EXITOK 0 # define EXITBAD 1 # else # ifdef __QNX__ # define unix # include <fcntl.h> # include <stdlib.h> # include <stdio.h> # include <ctype.h> # include <malloc.h> # include <signal.h> # include <string.h> # include <time.h> # define OSSYMS "UNIX=true","OS=QNX" # define SPLITPATH ':' # define MAXLINE 996 /* longest 'together' actions */ # define EXITOK 0 # define EXITBAD 1 # else /* QNX */ # ifdef macintosh # include <time.h> # include <stdlib.h> # include <string.h> # include <stdio.h> # define OSSYMS "MAC=true","OS=MAC" # define SPLITPATH ',' # define MAXLINE 1024 /* longest 'together' actions */ # define EXITOK 0 # define EXITBAD 1 # else /* not MAC */ # include <sys/types.h> # include <sys/file.h> # include <sys/stat.h> # include <fcntl.h> # ifndef ultrix # include <stdlib.h> # endif # include <stdio.h> # include <ctype.h> # if !defined(__bsdi__)&&!defined(__FreeBSD__) # if !defined(NeXT)&&!defined(__MACHTEN__) # if !defined(MVS) # include <malloc.h> # endif # endif # endif # include <memory.h> # include <signal.h> # include <string.h> # include <time.h> # ifdef _AIX # define unix # ifdef _AIX41 # define OSSYMS "UNIX=true","OS=AIX","OSVER=41" # else # define OSSYMS "UNIX=true","OS=AIX","OSVER=32" # endif # endif # ifdef __BEOS__ # define OSSYMS "UNIX=true","OS=BEOS" # define unix # endif # ifdef __bsdi__ # define OSSYMS "UNIX=true","OS=BSDI" # endif # if defined (COHERENT) && defined (_I386) # define OSSYMS "UNIX=true","OS=COHERENT" # endif # ifdef __FreeBSD__ # define OSSYMS "UNIX=true","OS=FREEBSD" # endif # ifdef __DGUX__ # define OSSYMS "UNIX=true","OS=DGUX" # endif # ifdef __hpux # define OSSYMS "UNIX=true","OS=HPUX" # endif # ifdef __sgi # define OSSYMS "UNIX=true","OS=IRIX" # endif # ifdef __ISC # define OSSYMS "UNIX=true","OS=ISC" # endif # ifdef linux # define OSSYMS "UNIX=true","OS=LINUX" # endif # ifdef __Lynx__ # define OSSYMS "UNIX=true","OS=LYNX" # define unix # endif # ifdef __MACHTEN__ # define OSSYMS "UNIX=true","OS=MACHTEN" # endif # ifdef MVS # define unix # define OSSYMS "UNIX=true","OS=MVS" # endif # ifdef _ATT4 # define OSSYMS "UNIX=true","OS=NCR" # endif # ifdef NeXT # define OSSYMS "UNIX=true","OS=NEXT" # endif # ifdef __osf__ # define OSSYMS "UNIX=true","OS=OSF" # endif # ifdef _SEQUENT_ # define OSSYMS "UNIX=true","OS=PTX" # endif # ifdef M_XENIX # define OSSYMS "UNIX=true","OS=SCO" # endif # ifdef sinix # define OSSYMS "UNIX=true","OS=SINIX" # endif # ifdef sun # if defined(__svr4__) || defined(__SVR4) # define OSSYMS "UNIX=true","OS=SOLARIS" # else # define OSSYMS "UNIX=true","OS=SUNOS" # endif # endif # ifdef ultrix # define OSSYMS "UNIX=true","OS=ULTRIX" # endif # if defined(__USLC__) && !defined(M_XENIX) # define OSSYMS "UNIX=true","OS=UNIXWARE" # endif # ifndef OSSYMS # define OSSYMS "UNIX=true","OS=UNKNOWN" # endif # define MAXLINE 10240 /* longest 'together' actions' */ # define SPLITPATH ':' # define EXITOK 0 # define EXITBAD 1 # endif /* mac */ # endif /* QNX */ # endif /* OS/2 */ # endif /* NT */ # endif /* UNIX */ /* OSPLAT definitions - note the leading , */ # define OSPLATSYM /**/ # ifdef _M_PPC # undef OSPLATSYM # define OSPLATSYM ,"OSPLAT=PPC" # endif # if defined( _ALPHA_ ) || defined( __alpha__ ) # undef OSPLATSYM # define OSPLATSYM ,"OSPLAT=AXP" # endif # if defined( _i386_ ) || defined( __i386__ ) || defined( _M_IX86 ) # undef OSPLATSYM # define OSPLATSYM ,"OSPLAT=X86" # endif # ifdef __sparc__ # undef OSPLATSYM # define OSPLATSYM ,"OSPLAT=SPARC" # endif /* You probably don't need to muck with these. */ # define MAXSYM 1024 /* longest symbol in the environment */ # define MAXJPATH 1024 /* longest filename */ # define MAXJOBS 64 /* silently enforce -j limit */ # define MAXARGC 32 /* words in $(JAMSHELL) */ # define CMDBUF 10240 /* size of command blocks */ /* Jam private definitions below. */ # define DEBUG_MAX 10 struct globs { int noexec; int jobs; char debug[DEBUG_MAX]; } ; extern struct globs globs; # define DEBUG_MAKE ( globs.debug[ 1 ] ) /* show actions when executed */ # define DEBUG_MAKEQ ( globs.debug[ 2 ] ) /* show even quiet actions */ # define DEBUG_EXEC ( globs.debug[ 2 ] ) /* show text of actons */ # define DEBUG_MAKEPROG ( globs.debug[ 3 ] ) /* show progress of make0 */ # define DEBUG_BIND ( globs.debug[ 3 ] ) /* show when files bound */ # define DEBUG_EXECCMD ( globs.debug[ 4 ] ) /* show execcmds()'s work */ # define DEBUG_COMPILE ( globs.debug[ 5 ] ) /* show rule invocations */ # define DEBUG_HEADER ( globs.debug[ 6 ] ) /* show result of header scan */ # define DEBUG_BINDSCAN ( globs.debug[ 6 ] ) /* show result of dir scan */ # define DEBUG_SEARCH ( globs.debug[ 6 ] ) /* show attempts at binding */ # define DEBUG_VARSET ( globs.debug[ 7 ] ) /* show variable settings */ # define DEBUG_VARGET ( globs.debug[ 8 ] ) /* show variable fetches */ # define DEBUG_VAREXP ( globs.debug[ 8 ] ) /* show variable expansions */ # define DEBUG_IF ( globs.debug[ 8 ] ) /* show 'if' calculations */ # define DEBUG_LISTS ( globs.debug[ 9 ] ) /* show list manipulation */ # define DEBUG_SCAN ( globs.debug[ 9 ] ) /* show scanner tokens */ # define DEBUG_MEM ( globs.debug[ 9 ] ) /* show memory use */
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#35 | 23298 | Nick Poole |
Updating Jam source The changes here include a simplified Windows build process: the makefile now has 2 MSVC sections, one 32-bit the other 64-bit. |
||
#34 | 9935 | brett |
Build rules for jam on Darwin 9.0. p4transfer.py: Transferred from production |
||
#33 | 9934 | noahf |
Increase generic execcmd buffer to 20kib. p4transfer.py: Transferred from production |
||
#32 | 9933 | tony |
zLinux porting changes. This is Linux running on an s390x platform, the x means 64-bit. The only change required was to ensure that jam guessed the OSPLAT correctly. I left the old (32-bit) OSPLAT alone (390), but chose s390x for this one as that's what 'uname -a' reports. Porting change only. p4transfer.py: Transferred from production |
||
#31 | 9932 | Perforce staff |
Make jam -dr an alias for jam -d+5 (turn on compile debugging). New functionality documented in RELNOTES. p4transfer.py: Transferred from production |
||
#30 | 9931 | Perforce staff |
Bump VMS command line length to 2048 so that we can build the p4api. Don't know the actual limit, but it appears not to be 1024 anymore. p4transfer.py: Transferred from production |
||
#29 | 9930 | noahf |
Define OSPLAT=SPARC64 if building as a sparcv9 binary. p4transfer.py: Transferred from production |
||
#28 | 9929 | Perforce staff |
Set OSPLAT to X86_64 on non-windows adm64 platforms. Set OSPLAT to X86 even on FreeBSD et al. Report OSPLAT with jam -v. Now jam 2.5.2. User visible changes documented in RELNOTES. p4transfer.py: Transferred from production |
||
#27 | 9928 | brett |
An attempt at sorting out the various 64bit Windows builds. IA64 indicates the Intel Itanium 64bit Windows build. X64 indicates the AMD64 and the Intel EM64T 64bit Windows build. It should not be necessary to set MSVCVer or OSPLAT for these builds. Hopefully these changes didn't break the AMD64 Linux build. p4transfer.py: Transferred from production |
||
#26 | 9927 | tony |
jam and 2004.2 p4 client for AS/400. Built on AS/400 V5R2 with native ILE C/C++ compiler. Note, this build reports itself as P4/AS400/2004.2/76944 but this change contains porting changes that were required to make the build work so the changelist number is incorrect. This can be resolved with a clean build for 2005.1 at a later date. p4.sav and jam.sav are AS/400 "Save Files" that can be used to install the software on an AS/400 machine. The p4.sav file includes the p4.cmd and p4sync.cmd files we distributed with our older AS/400 builds. These files define a forms-type interface for supplying the parameters to the commands when you run them. Porting change only. No functional change. p4transfer.py: Transferred from production |
||
#25 | 9926 | Perforce staff |
Maximum command line length now determined by execmax() function, which still just returns the compiled-in MAXLINE. p4transfer.py: Transferred from production |
||
#24 | 9925 | tony |
Port Jam to Zeta. Zeta is a fork of BeOS so this port is broadly the same as the BeOS port. p4transfer.py: Transferred from production |
||
#23 | 9924 | Perforce staff |
Nonstop unix changes from Kim Hae-Joo. p4transfer.py: Transferred from production |
||
#22 | 9923 | Perforce staff |
FreeBSD 5/AMD64 porting changes. Porting changes. p4transfer.py: Transferred from production |
||
#21 | 9922 | Perforce staff |
OpenBSD porting changes from Michael Champigny. Porting change. p4transfer.py: Transferred from production |
||
#20 | 9921 | Perforce maintenance |
HPUX 11 jam porting: a cast for exec() and include unistd.h. Porting change. p4transfer.py: Transferred from production |
||
#19 | 2850 | rmg |
Mac classic MPW Codewarrior 7 upgrades: minor compiling issues, new paths in Jambase for libraries and includes, and separate out GenFile1 that sets PATH for UNIX only, as it does't work under MPW (or anything other than with sh). Porting change, noted in RELNOTES. === computer:1666: Change 41285 by evalynne@evalynne-bld-mac on 2003/02/05 11:47:19 |
||
#18 | 2493 | rmg |
Rewrite the past: update all jam's source with comments to reflect changes since about 2.3, very early 2001. Whitespace only change. === computer:1666: Change 37660 by seiwald@play-seiwald on 2002/11/06 22:41:35 Note: I regenerated jamgram.c on my linux 7.3 system prior to the submit, since patch was so unhappy trying to lay down the changes from Christopher's change. Presumably this is just due to different yacc/bison/whatever particulars on the system where Christopher made the changes originally. - rmg |
||
#17 | 2492 | rmg |
Make jam on solaris sparc set OSPLAT to sparc. This will change the build directory for solaris executables to bin.solarissparc! User visible change documented in RELNOTES. === computer:1666: Change 37638 by seiwald@play-seiwald on 2002/11/05 14:48:06 |
||
#16 | 2486 | rmg |
Fooling around with jam's -d flag, to make it possible to specify useful display output without turning on loads of debugging crud. New -dd flag to display dependencies. Provisional changes not yet documented in jam.html. === computer:1666: Change 36374 by seiwald@play-seiwald on 2002/09/19 15:17:20 Jam -d change: the message "...using xxx..." now only shows up with -da, rather than in the default output. It made it hard to see what was happening when there were a lot of temp files lying around. User visible change documented in RELNOTES. === computer:1666: Change 36430 by seiwald@play-seiwald on 2002/09/23 11:34:12 Put jam -dx flags into 'jam -h'. Change to undocumented behavior (jam -h's output). === computer:1666: Change 36551 by seiwald@play-seiwald on 2002/09/26 14:39:54 Document jam's new -d debug flags. === computer:1666: Change 37367 by seiwald@waffle-cyg-seiwald on 2002/10/28 16:03:46 jam -n now implies -dax, just as the old jam -n implied -d2. Change to unreleased functionality. === computer:1666: Change 37550 by seiwald@waffle-cyg-seiwald on 2002/11/03 23:12:15 |
||
#15 | 2485 | rmg |
Beos updates for jam from "Ingo Weinhold" <bonefish@cs.tu-berlin.de>. Porting change. === computer:1666: Change 35634 by seiwald@play-seiwald on 2002/08/16 11:42:39 |
||
#14 | 1571 | Perforce staff |
MINGW port by Max Blagai. Porting change documented in RELNOTES. |
||
#13 | 1553 | Perforce staff |
New -g flag to reorder targets so that they are built according to their sources update times, rather than simply the order in which they appear in the Jamfiles. This flag is experimental: it isn't clear if sorting on target time is adequate to ensure newest sources are seen first, and it isn't clear that this is actually useful at all. Undocumented except for a note in RELNOTES. |
||
#12 | 1355 | rmg |
Record integration of Change 281 by john_belmonte. (This was actually dropped in as part of the Jam 2.3 release; the present change serves to record the fact in the integration history, only.) |
||
#11 | 1346 | rmg |
Add an option that gets Jam to exit as soon as any target fails (as if it had received an "interrupt") Integrates Change 233 by Peter Glasscock. Added to Jam.html & RELNOTES - rmg |
||
#10 | 1319 | rmg |
Jam 2.3 + Perforce's internal changes. This change is a drop of the Perforce internal Jam changes since the 2.3 public release. The individual changes represented herein are preserved in the //guest/richard_geiger/intjam/ branch. The intent of this drop is to provide a base, from which other contributors' Jam branches may be integrated into. It is not intended to become a packaged release in this state. We will be integrating changes from other users prior to creating the next packaged release. Please refer to the src/RELNOTES file for an overview of the changes present in this integration. - Richard Geiger Open Source Engineer at Perforce |
||
#9 | 486 | Perforce staff |
Jam 2.3. See RELNOTES for a list of changes from 2.2.x. Just about every source file was touched when jam got ANSI-fied. |
||
#8 | 215 | Perforce staff |
Mark Baushke's opinion is that OSPLAT=SPARC should be defined regardless of whether 'sun' is defined or not. This is probably a better opinion than the previous scheme, which was not to define OSPLAT for the "native" platform. |
||
#7 | 212 | Perforce staff |
An interpretative integration of Peter Glasscock's -o file support. This is handled in the make1() routine, rather than in all the exec*.c files. -o x writes the actions to file x rather than actually running them. Implies -n (but not -d2). |
||
#6 | 211 | Perforce staff | Jeff Sickel's Mac OS X port. | ||
#5 | 67 | Laura Wingerd |
Integrate Perforce's jam changes & project page update (change 59, change 60, change 61, change 62, change 63, change 64, change 66) |
||
#4 | 5 | Perforce maintenance | Jam/MR 2.2.4 (HDRPATTERN, JAMUNAME, JAMSHELL, plus misc tweaks) | ||
#3 | 4 | Perforce maintenance | Jam/MR 2.2.2 (AmigaOS support) | ||
#2 | 3 | Perforce maintenance | Jam/MR 2.2.1 (fix for NT handle leak) | ||
#1 | 2 | laura | Add Jam/MR 2.2 source |