|
|
|
|
@@ -22,136 +22,46 @@
|
|
|
|
|
where_am_I := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
|
include $(E3_REQUIRE_TOOLS)/driver.makefile
|
|
|
|
|
|
|
|
|
|
ifneq ($(strip $(ADCORE_DEP_VERSION)),)
|
|
|
|
|
adcore_VERSION=$(ADCORE_DEP_VERSION)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifneq ($(strip $(BUSY_DEP_VERSION)),)
|
|
|
|
|
busy_VERSION=$(BUSY_DEP_VERSION)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
#
|
|
|
|
|
# Add any required modules here that come from startup scripts, etc.
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
|
|
REQUIRED += adcore
|
|
|
|
|
REQUIRED += busy
|
|
|
|
|
REQUIRED += seq
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
#
|
|
|
|
|
# If you want to exclude any architectures:
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
|
|
EXCLUDE_ARCHS += linux-ppc64e6500
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
#
|
|
|
|
|
# Relevant directories to point to files
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
|
|
APP := ADOrcaApp
|
|
|
|
|
APP := ADOrcaApp
|
|
|
|
|
APPDB := $(APP)/Db
|
|
|
|
|
APPSRC := $(APP)/src
|
|
|
|
|
APPCMDS := $(APP)/cmds
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
#
|
|
|
|
|
# Add any files that should be copied to $(module)/Db
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
SUPPORT:= support/dcamsdk4/lib/linux-x86_64
|
|
|
|
|
|
|
|
|
|
# TEMPLATES += $(wildcard $(APPDB)/*.db)
|
|
|
|
|
TEMPLATES += $(wildcard $(APPDB)/*.db)
|
|
|
|
|
TEMPLATES += $(wildcard $(ADCORE_DIR)/*.db)
|
|
|
|
|
TEMPLATES += $(wildcard $(APPDB)/*.template)
|
|
|
|
|
|
|
|
|
|
# USR_INCLUDES += -I$(where_am_I)$(APPSRC)
|
|
|
|
|
# USR_INCLUDES += -I $(E3_ADCORE_LOCATION)/ADCore/ADApp/ADSrc
|
|
|
|
|
# USR_INCLUDES += -I $(E3_ASYN_LOCATION)/asyn/interfaces
|
|
|
|
|
# USR_INCLUDES += -I $(E3_ASYN_LOCATION)/asyn/asynDriver
|
|
|
|
|
# USR_INCLUDES += -I $(E3_ASYN_LOCATION)/asyn/asynPortDriver
|
|
|
|
|
|
|
|
|
|
# USR_INCLUDES += -DLINUX -I/home/iocuser/dcamsdk4/inc/
|
|
|
|
|
USR_INCLUDES += -DLINUX -I ../support/dcamsdk4/inc/
|
|
|
|
|
# USR_INCLUDES += -I ../support/dcamsdk4/misc/
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
#
|
|
|
|
|
# Add any files that need to be compiled (e.g. .c, .cpp, .st, .stt)
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
|
|
# SOURCES += $(APPSRC)/ADOrcaMain.cpp
|
|
|
|
|
SOURCES += $(APPSRC)/orca.cpp
|
|
|
|
|
# SOURCES += support/dcamsdk4/misc/common.cpp
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
#
|
|
|
|
|
# Add any .dbd files that should be included (e.g. from user-defined functions, etc.)
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
|
|
DBDS += $(APPSRC)/orca.dbd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
#
|
|
|
|
|
# Add any header files that should be included in the install (e.g.
|
|
|
|
|
# StreamDevice or asyn header files that are used by other modules)
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
|
|
# HEADERS += /home/iocuser/dcamsdk4/inc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
#
|
|
|
|
|
# Add any startup scripts that should be installed in the base directory
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
|
|
DBDS += $(APPSRC)/orca.dbd
|
|
|
|
|
SCRIPTS += $(wildcard iocsh/*.iocsh)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
#
|
|
|
|
|
# If you have any .substitution files, and template files, add them here.
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
|
|
# SUBS=$(wildcard $(APPDB)/*.substitutions)
|
|
|
|
|
TMPS=$(wildcard $(APPDB)/*.template)
|
|
|
|
|
|
|
|
|
|
USR_LDFLAGS += -L$(PREFIX)/lib/ -ldcamapi
|
|
|
|
|
LIB_SYS_LIBS += dcamapi
|
|
|
|
|
|
|
|
|
|
VENDOR_LIBS += $(SUPPORT)/libdcamapi.so.4
|
|
|
|
|
VENDOR_LIBS += $(SUPPORT)/libdcamapi.so.4.0.6269
|
|
|
|
|
VENDOR_LIBS += $(SUPPORT)/libdcamapi.so
|
|
|
|
|
|
|
|
|
|
USR_DBFLAGS += -I . -I ..
|
|
|
|
|
USR_DBFLAGS += -I $(E3_ADCORE_LOCATION)/db
|
|
|
|
|
USR_DBFLAGS += -I $(EPICS_BASE)/db
|
|
|
|
|
USR_DBFLAGS += -I $(APPDB)
|
|
|
|
|
|
|
|
|
|
USR_LDFLAGS += -L$(PWD)/support/dcamsdk4/lib/linux-x86_64 -ldcamapi
|
|
|
|
|
#USR_LDFLAGS += -L/usr/local/lib -ldcamapi
|
|
|
|
|
vlibs: $(VENDOR_LIBS)
|
|
|
|
|
|
|
|
|
|
db: $(SUBS) $(TMPS)
|
|
|
|
|
$(VENDOR_LIBS):
|
|
|
|
|
$(QUIET) install -m 755 $@ $(PREFIX)/lib/
|
|
|
|
|
|
|
|
|
|
$(SUBS):
|
|
|
|
|
@printf "Inflating database ... %44s >>> %40s \n" "$@" "$(basename $(@)).db"
|
|
|
|
|
@rm -f $(basename $(@)).db.d $(basename $(@)).db
|
|
|
|
|
@$(MSI) -D $(USR_DBFLAGS) -o $(basename $(@)).db -S $@ > $(basename $(@)).db.d
|
|
|
|
|
@$(MSI) $(USR_DBFLAGS) -o $(basename $(@)).db -S $@
|
|
|
|
|
|
|
|
|
|
$(TMPS):
|
|
|
|
|
@printf "Inflating database ... %44s >>> %40s \n" "$@" "$(basename $(@)).db"
|
|
|
|
|
@rm -f $(basename $(@)).db.d $(basename $(@)).db
|
|
|
|
|
@$(MSI) -D $(USR_DBFLAGS) -o $(basename $(@)).db $@ > $(basename $(@)).db.d
|
|
|
|
|
@$(MSI) $(USR_DBFLAGS) -o $(basename $(@)).db $@
|
|
|
|
|
|
|
|
|
|
.PHONY: db $(SUBS) $(TMPS)
|
|
|
|
|
.PHONY: $(VENDOR_LIBS) vlibs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vlibs:
|
|
|
|
|
|
|
|
|
|
.PHONY: vlibs
|
|
|
|
|
|