-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
83 lines (72 loc) · 2.5 KB
/
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
# libosdp-conformance package make
# This makes the RS-485 version. To make the TLS version,
# you need to explicitly do "make osdp-tls"
# (C)Copyright 2017-2024 Smithee Solutions LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Support provided by the Security Industry Association
# http://www.securityindustry.org
# (cd src-lib; make all; cd ..)
all: lib
(cd src-485; make all; cd ..)
(cd src-ui; make all; cd ..)
(cd src-tools; make all; cd ..)
lib:
(cd include; make all; cd ..)
(cd src-lib; make all)
build: all
mkdir -p opt/osdp-conformance/run/ACU
(cd opt/osdp-conformance/run; rm -f CP; ln -s ACU CP)
mkdir -p opt/osdp-conformance/run/MON
mkdir -p opt/osdp-conformance/run/PD
mkdir -p opt/osdp-conformance/tmp
chmod 777 opt/osdp-conformance/tmp
(cd include; make build; cd ..)
(cd src-lib; make build; cd ..)
(cd src-485; make build; cd ..)
(cd src-ui; make build; cd ..)
(cd src-tools; make build; cd ..)
cp doc/config-examples/open-osdp-params-ACU.json \
opt/osdp-conformance/run/ACU/
cp doc/config-examples/open-osdp-params-MON.json \
opt/osdp-conformance/run/MON/
cp doc/config-examples/open-osdp-params-PD.json \
opt/osdp-conformance/run/PD/
(cd test; make build-test; cd ..)
(cd package; make)
echo "/opt/osdp-conformance" >opt/osdp-conformance/run/ACU/my-root
echo "/opt/osdp-conformance" >opt/osdp-conformance/run/PD/my-root
echo "/opt/osdp-conformance" >opt/osdp-conformance/run/MON/my-root
osdp-tls: build
(cd src-tls; make all; cd ..)
(cd src-tls; make build; cd ..)
(cd src-ui; make build-tls; cd ..)
service: osdp-tls
(cd package; make service)
package: osdp-tls
(cd package; make package)
documentation: service
(cd doc; make build;)
clean:
(cd include; make clean; cd ..)
(cd src-lib; make clean; cd ..)
(cd src-485; make clean; cd ..)
(cd src-tls; make clean; cd ..)
(cd src-ui; make clean; cd ..)
(cd src-tools; make clean; cd ..)
(cd test; make clean; cd ..)
(cd doc; make clean; )
(cd package; make clean)
rm -f release-osdp-conformance.tgz *.deb
rm -rf opt