CC = cc
TARGET = -o jam0
CFLAGS =
ifneq "$(filter C:%, $(NEXT_ROOT))" ""
CC = gcc
CFLAGS = -DNT
EXE = .exe
endif
YACC = yacc
YACCFLAGS = -d
MV = mv
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 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
JAM0 = jam0$(EXE)
all: $(JAM0)
$(JAM0) -fJambase
install: $(JAM0)
$(JAM0) -fJambase install
clean:
rm -rf $(JAM0) bin.*
rm -f jamgram.h jamgram.c
jamgram.c: jamgram.y
$(YACC) $(YACCFLAGS) jamgram.y
$(MV) y.tab.c jamgram.c
$(MV) y.tab.h jamgram.h
jam0: jamgram.c
$(CC) $(TARGET) $(CFLAGS) $(SOURCES) $(LINKLIBS)