#
# Makefile for the btparse library
#

# Options for C compiler and linker -- these should be the only things you
# might have to change, e.g. if you have to use gcc, or you compiler's -O2
# output is buggy.

# The OPT2 and CFLAGS2 variables are used for compiling PCCTS-generated
# source files, so that I can use -Wall on my own code but not on the
# warning-prone parser/lexer code.  Here, they should just be identical to
# OPT and CFLAGS.

#CC = gcc#                         # you need an ANSI compiler
OPT = -O2
OPT2 = $(OPT)
CFLAGS = $(OPT) -I$(ANTLR_H)
CFLAGS2 = $(CFLAGS)

AR = ar
ARFLAGS = rsuc
RANLIB = true


# PCCTS programs, directories, and options -- if you have some weird and
# arcane version of PCCTS and you intend to use it, you might have to
# change these, but I doubt it.

ANTLR_H = pccts#                     # included with btparse package
ANTLR = antlr
DLG = dlg
RUN_PCCTS = ./run_pccts
PERL = perl#                         # perl 4 or 5 should be fine here

AFLAGS = -ga -gh -gt
DFLAGS = -C2 -i

include Makefile.common
