Files
epics-base/src/dbtools/Makefile.Host
Marty Kraimer b87f049c2d Replace dbVarSub with macLib.
Allow C style escape sequences
Fix long vx memory free list problem
Fix most compiler warning messages
1997-04-30 18:54:10 +00:00

80 lines
1.7 KiB
Makefile

# base/src/dbtools/Makefile.Host
#
TOP = ../../..
include $(TOP)/config/CONFIG_BASE
YACCOPT := -l
LEXOPT := -L
# This is ugly, but it is the only way I could get it to work
ifeq ($(T_A),alpha)
CMPLR=OLD
endif
# includes and manual pages to install:
#
MAN1 := dbLoadTemplate.1 subtool.1
MAN3 := dbLoadRecords.3 dbLoadTemplate.3
MAN5 := templatefile.5 dbfile.5
# ---------------------------------------
# the BSlib is not ported to WIN32,
# this results in less buildable products
# ---------------------------------------
ifdef WIN32
# uses getopt, optind, optarg from lib Com:
PROD_LIBS := Db Com
PROD := subtool dbLoadTemplate
else
# library to build from BSlib.c:
#
LIBSRCS := BSlib.c
LIBRARY := BSlib
# products to build,
# all use BSlib, dbLoadTemplate needs lib Db:
# (it doesn't hurt if all link Db...)
#
PROD_LIBS := BSlib Db Com
PROD := subtool dbLoadTemplate rdbls rdbapplist PVSserver
endif
include $(TOP)/config/RULES.Host
# hard-coded dependencies and rules,
# hopefully system-independent
#
# These lex sources are included in some C sources,
# so they have to be created in time:
#
dbLoadTemplate$(OBJ) sub_src$(OBJ): dbLoadTemplate_lex.c
dbLoadRecords$(OBJ): dbLoadRecords_lex.c
# Problem: dbLoadTemplate is used twice:
# in dbLoadTemplate and
# (with SUB_TOOL defined!) in subtool
sub_src.c: dbLoadTemplate.c
$(CP) $^ $@
# special CFLAGS only for compiling sub_src.c:
#
sub_src_CFLAGS := -DSUB_TOOL
subtool$(EXE): sub_src$(OBJ)
$(LINK.c) $^ $(LDLIBS)
dbLoadTemplate$(EXE): dbLoadTemplate$(OBJ) dbLoadRecords$(OBJ)
$(LINK.c) $^ $(LDLIBS)
clean::
@$(RM) dbLoadTemplate_lex.c dbLoadTemplate.c dbLoadRecords_lex.c \
dbLoadRecords.c
# EOF base/src/dbtools/Makefile.Host