forked from icshwi/e3-detectorinterface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetectorinterface.Makefile
104 lines (79 loc) · 2.94 KB
/
detectorinterface.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#
# Copyright (c) 2018 - Present European Spallation Source ERIC
#
# The program is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of the
# License, or any newer version.
#
# 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. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see https://www.gnu.org/licenses/gpl-2.0.txt
#
#
# Author : Jeong Han Lee
# email : [email protected]
# Date : Friday, November 2 10:53:55 CET 2018
# version : 0.0.1
#
## The following lines are mandatory, please don't change them.
where_am_I := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
include $(E3_REQUIRE_TOOLS)/driver.makefile
include $(where_am_I)/../configure/DECOUPLE_FLAGS
# If one would like to use the module dependency restrictly,
# one should look at other modules makefile to add more
# In most case, one should ignore the following lines:
#ifneq ($(strip $(ASYN_DEP_VERSION)),)
#asyn_VERSION=$(ASYN_DEP_VERSION)
#endif
## Exclude linux-ppc64e6500
EXCLUDE_ARCHS = linux-ppc64e6500
APP:=.
APPDB:=$(APP)/db
APPPROTO:=$(APP)/protocol
APPSRC:=$(APP)/src
# USR_INCLUDES += -I$(where_am_I)$(APPSRC)
# USR_CFLAGS += -Wno-unused-variable
# USR_CFLAGS += -Wno-unused-function
# USR_CFLAGS += -Wno-unused-but-set-variable
# USR_CPPFLAGS += -Wno-unused-variable
# USR_CPPFLAGS += -Wno-unused-function
# USR_CPPFLAGS += -Wno-unused-but-set-variable
TEMPLATES += $(wildcard $(APPDB)/*.db)
TEMPLATES += $(wildcard $(APPDB)/*.template)
TEMPLATES += $(wildcard $(APPPROTO)/*.proto)
SOURCES += $(wildcard $(APPSRC)/*.c)
## This RULE should be used in case of inflating DB files
## db rule is the default in RULES_DB, so add the empty one
## Please look at e3-mrfioc2 for example.
db:
.PHONY: db
# EPICS_BASE_HOST_BIN = $(EPICS_BASE)/bin/$(EPICS_HOST_ARCH)
# MSI = $(EPICS_BASE_HOST_BIN)/msi
#
# USR_DBFLAGS += -I . -I ..
# USR_DBFLAGS += -I $(EPICS_BASE)/db
# USR_DBFLAGS += -I $(APPDB)
#
# SUBS=$(wildcard $(APPDB)/*.substitutions)
# TMPS=$(wildcard $(APPDB)/*.template)
#
# db: $(SUBS) $(TMPS)
# $(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)
vlibs:
.PHONY: vlibs