88 lines
2.6 KiB
Plaintext
88 lines
2.6 KiB
Plaintext
ifndef EPICS_BASE
|
|
EPICS_BASE = $(INSTALL_LOCATION)
|
|
endif
|
|
|
|
#---------------------------------------------------------------
|
|
# Epics base directories
|
|
|
|
EPICS_BASE_HOST_BIN = $(EPICS_BASE)/bin/$(EPICS_HOST_ARCH)
|
|
EPICS_EXTENSIONS_HOST_BIN = $(EPICS_EXTENSIONS)/bin/$(EPICS_HOST_ARCH)
|
|
EPICS_BASE_INCLUDE = $(EPICS_BASE)/include
|
|
|
|
ifdef T_A
|
|
EPICS_BASE_LIB = $(EPICS_BASE)/lib/$(T_A)
|
|
EPICS_BASE_BIN = $(EPICS_BASE)/bin/$(T_A)
|
|
endif
|
|
|
|
#Definitions for extensions convenience
|
|
As_DIR = $(EPICS_BASE_LIB)
|
|
ca_DIR = $(EPICS_BASE_LIB)
|
|
cas_DIR = $(EPICS_BASE_LIB)
|
|
Com_DIR = $(EPICS_BASE_LIB)
|
|
db = $(EPICS_BASE_LIB)
|
|
dbStaticHost_DIR = $(EPICS_BASE_LIB)
|
|
gdd_DIR = $(EPICS_BASE_LIB)
|
|
|
|
#---------------------------------------------------------------
|
|
# For applications and extensions
|
|
|
|
# add epics/base include directories
|
|
ifneq ($(EPICS_BASE),$(TOP))
|
|
ifneq ($(EPICS_BASE),$(INSTALL_LOCATION))
|
|
INSTALL_INCLUDES += \
|
|
-I$(EPICS_BASE_INCLUDE)/os/$(OS_CLASS) \
|
|
-I$(EPICS_BASE_INCLUDE)
|
|
|
|
# add epics/base dbd directory
|
|
INSTALL_DBDFLAGS += -I$(EPICS_BASE)/dbd
|
|
endif
|
|
endif
|
|
|
|
#---------------------------------------------------------------
|
|
# Version number for base shared libraries (and win32 products)
|
|
|
|
ifeq ($(EPICS_BASE),$(TOP))
|
|
SHRLIB_VERSION = $(EPICS_VERSION).$(EPICS_REVISION)
|
|
PROD_VERSION = $(EPICS_VERSION).$(EPICS_REVISION)
|
|
endif # EPICS_BASE
|
|
|
|
#---------------------------------------------------------------
|
|
# Epics base c preprocessor flags
|
|
|
|
# c++ exceptions
|
|
CXX_EXCEPTIONS = YES
|
|
CXX_EXCEPTIONS_FLAGS_YES =
|
|
CXX_EXCEPTIONS_FLAGS_NO = -DnoExceptionsFromCXX
|
|
EPICS_BASE_CPPFLAGS = $(CXX_EXCEPTIONS_FLAGS_$(CXX_EXCEPTIONS))
|
|
|
|
#---------------------------------------------------------------
|
|
# Epics base build tools and tool flags
|
|
|
|
# private versions of lex/yacc from EPICS
|
|
EYACC = $(EPICS_BASE_HOST_BIN)/antelope$(HOSTEXE)
|
|
ELEX = $(EPICS_BASE_HOST_BIN)/e_flex$(HOSTEXE) -S$(EPICS_BASE_INCLUDE)/flex.skel.static
|
|
YACC = $(EYACC)
|
|
LEX = $(ELEX)
|
|
|
|
# state notation language compiler (installed from base/src/sequencer)
|
|
SNC = $(EPICS_BASE_HOST_BIN)/snc$(HOSTEXE)
|
|
|
|
# adl2dl
|
|
ADL2DL = $(EPICS_EXTENSIONS_HOST_BIN)/adl2dl
|
|
|
|
# sch2edif compiler and flags
|
|
SCH2EDIF = sch2edif
|
|
SCH2EDIF_PATH =
|
|
SCH2EDIF_SYSFLAGS = -n -ap -p.+..+$(SCH2EDIF_PATH)+$(EPICS_EXTENSIONS)/templates/capfast/sym+
|
|
SCH2EDIF_FLAGS =
|
|
|
|
# e2db and flags
|
|
# - again there is an assumption where edb.def is installed.
|
|
E2DB = $(EPICS_EXTENSIONS_HOST_BIN)/e2db
|
|
E2DB_SYSFLAGS = -ate -d $(EPICS_EXTENSIONS)/templates/capfast/edb.def
|
|
E2DB_FLAGS =
|
|
|
|
#dbst
|
|
DBST = $(EPICS_EXTENSIONS_HOST_BIN)/dbst
|
|
|