EPICS = ../../../..
include Target.include
include $(EPICS)/config/CONFIG_BASE

USR_CFLAGS = -D_NO_PROTO
USR_LDLIBS = -lAs -lCom -lDb -lCom -s
USR_LDFLAGS = -L.

DEPLIBS_BASE = $(EPICS_BASE_LIB)
DEPLIBS = ./libAs.a\
	  $(DEPLIBS_BASE)/libCom.a\
	  $(DEPLIBS_BASE)/libDb.a

LEX = $(ELEX)
YACC = $(EYACC)

SRCS.c = ../ascheck.c asLib.c
OBJS = ascheck.o
LIBOBJS = asLib.o
LIBNAME = libAs.a
PROD = ascheck

include $(EPICS)/config/RULES.Unix

# Extra rule since asLib_lex.c is included in asLib.c
#   In my opinion, these objects should really be built
#   independently.
asLib.o: asLib_lex.c ../asLibRoutines.c

clean::
	@$(RM) asLib.c asLib_lex.c 

