Files
adorca/ADOrca.Makefile
marcofilho 4bc89278fe Update makefile
Makefile was using old e3 directives. I copied the makefile from the recipe.
2024-08-26 16:46:57 +02:00

68 lines
1.8 KiB
Makefile

#
# Copyright (c) 2019 - 2022, European Spallation Source ERIC
#
# The program is free software: you can redistribute it and/or modify it
# under the terms of the BSD 3-Clause license.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.
#
# Author : Tomasz Brys
# email : tomasz.brys@ess.eu
# Date : 2022-03-16
# version : 0.0.0
#
# This template file is based on one generated by e3TemplateGenerator.bash.
# Please look at many other module_name.Makefile in the https://gitlab.esss.lu.se/epics-modules/
# repositories.
#
## The following lines are mandatory, please don't change them.
where_am_I := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
include $(E3_REQUIRE_TOOLS)/driver.makefile
REQUIRED += adcore
REQUIRED += busy
EXCLUDE_ARCHS += linux-ppc64e6500
APP := ADOrcaApp
APPDB := $(APP)/Db
APPSRC := $(APP)/src
APPCMDS := $(APP)/cmds
SUPPORT:= support/dcamsdk4/lib/linux-x86_64
TEMPLATES += $(wildcard $(APPDB)/*.db)
TEMPLATES += $(wildcard $(ADCORE_DIR)/*.db)
TEMPLATES += $(wildcard $(APPDB)/*.template)
USR_INCLUDES += -DLINUX -I ../support/dcamsdk4/inc/
SOURCES += $(APPSRC)/orca.cpp
DBDS += $(APPSRC)/orca.dbd
SCRIPTS += $(wildcard iocsh/*.iocsh)
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)
vlibs: $(VENDOR_LIBS)
$(VENDOR_LIBS):
$(QUIET) install -m 755 $@ $(PREFIX)/lib/
.PHONY: $(VENDOR_LIBS) vlibs