# This build the sinq extensions for the PSI EPICS setup
include /ioc/tools/driver.makefile

MODULE=sinqDAQ
BUILDCLASSES=Linux
EPICS_VERSIONS=7.0.7
ARCH_FILTER=RHEL%

# additional module dependencies
REQUIRED+=asyn
REQUIRED+=calc
REQUIRED+=stream

# DB files to include in the release
TEMPLATES += db/channels.db
TEMPLATES += db/gating_channels.db
TEMPLATES += db/daq_4ch.db
TEMPLATES += db/daq_8ch.db
TEMPLATES += db/daq_common.db
TEMPLATES += db/daq_2nd_gen.db
TEMPLATES += db/daq_2nd_gen_test.db
TEMPLATES += db/daq.proto
TEMPLATES += db/daq_soft_proton.db
TEMPLATES += db/sim_proton_current.db

# Just for simulation
TEMPLATES += db/daq_simcontrol.db

# DBD files to include in the release
DBDS += src/daq.dbd

# Source files to build
SOURCES += src/daq.cpp
SOURCES += src/daq_soft_proton.c

SCRIPTS += scripts/daq_4ch.cmd
SCRIPTS += scripts/daq_8ch.cmd
SCRIPTS += scripts/daq_2nd_gen.cmd
SCRIPTS += scripts/daq_soft_proton.cmd
SCRIPTS += sim/daq_sim.py

CXXFLAGS += -std=c++17
USR_CFLAGS += -std=c11 -Wall -Wextra #-Werror

# MISCS  would be the place to keep the stream device template files
