######################################################################
# Makefile to build Shell 5.10  under Aztec C 5.0d
# make sure you use 5.0d or above, as setenv() has changed
# NOTE: Our chars are UNSIGNED by default, and the executable's called zsh

OBJ=run.o main.o comm1.o comm2.o comm3.o execom.o set.o sub.o globals.o rawcon.o
INC=shell.syms

FLAGS	= -wurp -ssr
DEBUG	= -bs
PRECOM	= -hiShell.syms

zsh:  makefile shell.syms $(OBJ)
	ln +q -m -g -o zsh $(OBJ) -lc

shell.syms : shell.h proto.h
	cc -pp -hoShell.syms shell.h -DAZTEC_C

$(OBJ): $(INC)
	cc -pp $(DEBUG) $(FLAGS) $(PRECOM) $*.c
