This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
60 lines (43 loc) · 2.13 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
LIBIEC_HOME=../libiec61850
PROJECT_BINARY_NAME = server_example_inputs
PROJECT_ICD_FILE = simpleIO_inputs.cid
PROJECT_SOURCES = input/inputs.c
PROJECT_SOURCES += model/config_file_parser_extensions.c
PROJECT_SOURCES += model/dynamic_model_extensions.c
PROJECT_SOURCES += LNs/SMVPublisher.c
PROJECT_SOURCES += LNs/LNParse.c
PROJECT_SOURCES += LNs/CILO.c
PROJECT_SOURCES += LNs/CSWI.c
PROJECT_SOURCES += LNs/MMXU.c
PROJECT_SOURCES += LNs/PTOC.c
PROJECT_SOURCES += LNs/PTRC.c
PROJECT_SOURCES += LNs/RADR.c
PROJECT_SOURCES += LNs/XCBR.c
PROJECT_SOURCES += LNs/XSWI.c
PROJECT_SOURCES += LNs/LLN0.c
PROJECT_SOURCES += LNs/TVTR.c
PROJECT_SOURCES += LNs/TCTR.c
PROJECT_SOURCES += server_example_inputs.c
#PROJECT_SOURCES += static_model.c
#PROJECT_SOURCES += static_input.c
include $(LIBIEC_HOME)/make/target_system.mk
include $(LIBIEC_HOME)/make/stack_includes.mk
LDFLAGS += -lm
INCLUDES += -I./inc
all: $(PROJECT_BINARY_NAME)
include $(LIBIEC_HOME)/make/common_targets.mk
model: $(PROJECT_ICD_FILE)
java -jar $(LIBIEC_HOME)/tools/model_generator/genconfig.jar $(PROJECT_ICD_FILE) -ied IED1_XCBR ./cfg/IED1_XCBR.cfg
java -jar model_input_generator/genconfig_input.jar $(PROJECT_ICD_FILE) -ied IED1_XCBR ./cfg/IED1_XCBR.ext
java -jar $(LIBIEC_HOME)/tools/model_generator/genconfig.jar $(PROJECT_ICD_FILE) -ied IED2_PTOC ./cfg/IED2_PTOC.cfg
java -jar model_input_generator/genconfig_input.jar $(PROJECT_ICD_FILE) -ied IED2_PTOC ./cfg/IED2_PTOC.ext
java -jar $(LIBIEC_HOME)/tools/model_generator/genconfig.jar $(PROJECT_ICD_FILE) -ied IED3_SMV ./cfg/IED3_SMV.cfg
java -jar model_input_generator/genconfig_input.jar $(PROJECT_ICD_FILE) -ied IED3_SMV ./cfg/IED3_SMV.ext
#java -jar $(LIBIEC_HOME)/tools/model_generator/genmodel.jar $(PROJECT_ICD_FILE) -ied IED3_SMV
#java -jar model_input_generator/genmodel_input.jar $(PROJECT_ICD_FILE) -ied IED3_SMV
compose: $(PROJECT_ICD_FILE)
java -jar model_input_generator/gendocker.jar $(PROJECT_ICD_FILE) substation.yml
$(PROJECT_BINARY_NAME): $(PROJECT_SOURCES) $(LIB_NAME)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(PROJECT_BINARY_NAME) $(PROJECT_SOURCES) $(INCLUDES) $(LIB_NAME) $(LDFLAGS) $(LDLIBS)
clean:
rm -f $(PROJECT_BINARY_NAME)