GFLAG =
INC = -I../h
DEFS = -DSYS_V=$(SYS_V)
CFLAGS = $(INC) $(GFLAG) $(DEFS)
LDFLAGS = -s

LIB_DIR = ../lib

SRC = tokprep.c

all:	tokprep

# This program may be needed somewhere else and if specified as
# such it will be installed.
#if (COND_TOKPREP_INSTALL == 1)
install:	tokprep
	$(CP) tokprep $(TOKPREP_INSTALL_DIR)
#else
install:
#endif

print:
	$(PRINT_COMMAND) keywlex.sh joinfiles.c tok-lex.awk tok-pr.awk tok-yacc.awk

tokprep:	tokprep.o
	@$(RM) $@ lint
	@cd ../otherc; make
	@cd $(LIB_DIR); make
	$(CC) $(LDFLAGS) -o $@ tokprep.o ../otherc/defaults.o ../otherc/sig.o $(LIB_DIR)/libics.a

lint:	$(SRC)
	lint $(SRC) > $@

relink:
	@$(RM) tokprep
	@make  tokprep

clean::
	$(RM) tokprep

depend:	$(SRC)
	maketd -mIMakefile $(INC) $(SRC)

# DO NOT DELETE THIS LINE - make depend DEPENDS ON IT
A=../h

joinfiles.o: $A/extfil.h joinfiles.c

# *** Do not add anything here - It will go away. ***
