2005-12-29 19:40:48 +01:00
|
|
|
# Makefile for jam
|
|
|
|
|
|
|
|
CC = cc
|
2012-10-13 02:40:25 +02:00
|
|
|
CFLAGS = -O
|
2005-12-29 19:40:48 +01:00
|
|
|
EXENAME = ./jam0
|
|
|
|
TARGET = -o $(EXENAME)
|
|
|
|
HOST_SYSTEM=$(shell uname)
|
|
|
|
|
|
|
|
# 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
|
2015-08-07 17:22:32 +02:00
|
|
|
#CFLAGS = -I $(Include) -DNT
|
2005-12-29 19:40:48 +01:00
|
|
|
#TARGET = /Fejam0
|
|
|
|
#LINKLIBS = $(Lib)/oldnames.lib $(Lib)/kernel32.lib $(Lib)/libc.lib
|
|
|
|
#EXENAME = .\jam0.exe
|
|
|
|
|
|
|
|
# NT (with Microsoft compiler)
|
|
|
|
# People with DevStudio settings already in shell environment.
|
|
|
|
#CC = cl /nologo
|
2015-08-07 17:22:32 +02:00
|
|
|
#CFLAGS = -DNT
|
2005-12-29 19:40:48 +01:00
|
|
|
#TARGET = /Fejam0
|
|
|
|
#EXENAME = .\jam0.exe
|
|
|
|
|
|
|
|
# Interix - gcc
|
|
|
|
#CC = gcc
|
|
|
|
|
|
|
|
# Cygwin - gcc & cygwin
|
|
|
|
#CC = gcc
|
|
|
|
#CFLAGS = -D__cygwin__
|
|
|
|
|
|
|
|
# MingW32
|
|
|
|
#CC = gcc
|
|
|
|
#CFLAGS = -DMINGW
|
|
|
|
|
|
|
|
# MPEIX
|
|
|
|
#CC = gcc
|
|
|
|
#CFLAGS = -I/usr/include -D_POSIX_SOURCE
|
|
|
|
|
|
|
|
# QNX rtp (neutrino)
|
|
|
|
#CC = gcc
|
|
|
|
|
|
|
|
# BeOS (R5 only, actually, but who cares)
|
|
|
|
ifeq ($(HOST_SYSTEM), BeOS)
|
|
|
|
ifeq ($(shell sh -c "strings /system/lib/libroot.so | grep uname"), )
|
|
|
|
LINKLIBS = -lnet
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
SOURCES = \
|
|
|
|
builtins.c \
|
|
|
|
command.c compile.c execunix.c execvms.c expand.c \
|
|
|
|
filent.c fileos2.c fileunix.c filevms.c glob.c hash.c \
|
|
|
|
headers.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: $(EXENAME)
|
2015-08-07 17:22:32 +02:00
|
|
|
LINKLIBS=$(LINKLIBS) $(EXENAME)
|
2005-12-29 19:40:48 +01:00
|
|
|
|
|
|
|
$(EXENAME):
|
|
|
|
$(CC) $(TARGET) $(CFLAGS) $(SOURCES) $(LINKLIBS)
|