You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

# This file is under GNU General Public License 3.0
# see LICENSE.txt
include ../Makefile.conf
.PHONY: all clean
all: .copy
mkdir -p $@
.actions: sync.fsm gen_actions.ysl2 fsm.yml2 functions.ysl2 $(wildcard cond_act_*.yml2) | generated
$(YML2_PROC) -y gen_actions.ysl2 $< -o $@
.statemachines: sync.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2 | generated
$(YML2_PROC) -y gen_statemachine.ysl2 $< -o $@
.codecs: sync.fsm distribution.fsm storage.fsm gen_codec.ysl2 fsm.yml2 functions.ysl2 | generated
$(YML2_PROC) -y gen_codec.ysl2 $< -o $@
$(YML2_PROC) -y gen_codec.ysl2 distribution.fsm -o $@
$(YML2_PROC) -y gen_codec.ysl2 storage.fsm -o $@
.messages: sync.fsm distribution.fsm storage.fsm gen_messages.ysl2 gen_message_func.ysl2 fsm.yml2 functions.ysl2 | generated
$(YML2_PROC) -y gen_messages.ysl2 $< -o $@
$(YML2_PROC) -y gen_message_func.ysl2 $< -o $@
$(YML2_PROC) -y gen_messages.ysl2 distribution.fsm -o $@
$(YML2_PROC) -y gen_messages.ysl2 storage.fsm -o $@
rm -rf generated
rm -f *.xml *.xsl .statemachines .actions .codecs .messages .copy *.dot *.svg
.copy: .actions .statemachines .codecs .messages
cp -f generated/*.c generated/*.h ../src
cp -f generated/*.asn1 ../asn.1
touch .copy
%.xml: %.fsm
yml2c $< -o $@ sync.fsm gen_dot.ysl2
$(YML2_PROC) -y gen_dot.ysl2 $<
dot -Tsvg -o $@ $<