forked from paulscherrerinstitute/s7plc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 992 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
TOP=.
ifeq ($(wildcard $(TOP)/configure),)
# R3.13
include $(TOP)/config/CONFIG_APP
include $(TOP)/config/RULES_ARCHS
else
# R3.14+
include $(TOP)/configure/CONFIG
# Want local functions non-static? Define DEBUG
#CFLAGS += -DDEBUG
# Suppress warning in EPICS 7
USR_CPPFLAGS += -DUSE_TYPED_RSET
# library
LIBRARY = s7plc
LIB_SRCS += drvS7plc.c
LIB_SRCS += devS7plc.c
HTMLS += s7plc.html
INSTALL_DBDS += $(INSTALL_DBD)/s7plc.dbd
# Uncomment this if you want a dynamically loadable module
#LIB_SRCS += s7plc_registerRecordDeviceDriver.cpp
# stand alone application program
PROD_DEFAULT = s7plcApp
PROD_vxWorks = -nil-
s7plcApp_SRCS += s7plcApp_registerRecordDeviceDriver.cpp
s7plcApp_SRCS += appMain.cc
s7plcApp_LIBS += s7plc
s7plcApp_LIBS += $(EPICS_BASE_IOC_LIBS)
s7plcApp_DBD += base.dbd
s7plcApp_DBD += s7plc.dbd
DBD += s7plcApp.dbd
include $(TOP)/configure/RULES
s7plcApp.dbd.d: s7plc.dbd
vpath %.dbd ..
s7plc.dbd: s7plcBase.dbd s7plcCalcout.dbd s7plcReg.dbd
cat $^ > $@
endif