Makefile #1

  • //
  • guest/
  • craig_mcpheeters/
  • mattsChanges/
  • src/
  • Makefile
  • View
  • Commits
  • Open Download .zip Download (1 KB)
# Makefile for jam

CC = cc
TARGET = -o jam0
CFLAGS =

# Special flavors - uncomment appropriate lines

# NCR seems to have a broken readdir() -- use gnu
#CC = gcc

# AIX needs -lbsd, and has no identifying cpp symbol
# Use _AIX41 if you're not on 3.2 anymore.
#LINKLIBS = -lbsd
#CFLAGS = -D_AIX

# NT (with Microsoft compiler)
# Use FATFS if building on a DOS FAT file system
#Lib = $(MSVCNT)/lib
#Include = $(MSVCNT)/include
#CC = cl /nologo
#CFLAGS = -I $(Include) -DNT 
#TARGET = /Fejam0
#LINKLIBS = $(Lib)/oldnames.lib $(Lib)/kernel32.lib $(Lib)/libc.lib

# BeOS - Metroworks CodeWarrior
#CC = mwcc
#Include = /NewDisk/develop/headers/posix
#CFLAGS = -I $(Include)

# BeOS - gcc
#CC = gcc
#LINKLIBS = -lnet

# Interix - gcc
#CC = gcc

# Cygwin - gcc & cygwin
#CC = gcc
#CFLAGS = -D__cygwin__

# MPEIX
#CC = gcc
#CFLAGS = -I/usr/include -D_POSIX_SOURCE

# QNX rtp (neutrino)
#CC = gcc

SOURCES = \
	command.c compile.c execunix.c execvms.c expand.c \
	filent.c fileos2.c fileunix.c filevms.c glob.c hash.c \
	headers.c hcache.c jam.c jambase.c jamgram.c lists.c make.c make1.c \
	newstr.c option.c parse.c pathunix.c pathvms.c regexp.c \
	rules.c scan.c search.c timestamp.c variable.c

all: jam0
	./jam0

jam0:
	$(CC) $(TARGET) $(CFLAGS) $(SOURCES) $(LINKLIBS)
# Change User Description Committed
#1 1226 Craig Mcpheeters Created a branch which will be used to integrate changes from
   Matt Armstrong's copy of Jam.
//guest/craig_mcpheeters/jam/src/Makefile
#5 1086 Craig Mcpheeters Modified 'jam0' in the Makefile to './jam0'
Fixed a bug in my 'dynamic command size' extension.  It wasn't dealing
  with piecemeal targets properly
In execcmd(), reverted to 2.2 behaviour for the logic on NT of when
  to write a command to a .bat file, and when to invoke the shell
  directly.  The cmd.exe interpreter has limitations on how large the
  lines in it can be.  We were invoking rc.exe with a long command line,
  and it was failing when invoked via a .bat file
#4 1023 Craig Mcpheeters Integration from //guest/craig_mcpheeters/work/jam/src/...
This return incorporates all of the Alias|Wavefront extensions to
  Jam, into an area which is a proper branch of the Jam mainline.
  An integration of these files into the Jam mainline will show all
  of the differences.
There are several extensions to Jam in this return.  Look at the
  new file Jamfile.config for an explanation of the extensions, and
  how to compile them into your own copy of Jam.  If you want to
  build a copy of Jam with all of the extensions, do this:
    jam -sAllOptions=1
  Read the config file for more info.
The extensions range from minor output tweaks and simple fixes to
  more major things like a header cache, serialization of output from
  multiple jobs, dynamic command block sizing
These are all offered without warranty, etc.
#3 784 Craig Mcpheeters Integration from Jam mainline
#2 617 Craig Mcpheeters Integration from mainline as of @3
#1 616 Craig Mcpheeters Integration from Jam mainline, as of @2