tests/Makefile
changeset 3926 a6ec38dcbfb5
parent 3834 0010719d0dea
equal deleted inserted replaced
3925:1d383b4c0a23 3926:a6ec38dcbfb5
    69 
    69 
    70 #
    70 #
    71 # SOURCE and BUILD
    71 # SOURCE and BUILD
    72 #
    72 #
    73 
    73 
    74 BUILT_PROJECTS=beremiz matiec open62541
    74 BUILT_PROJECTS=beremiz matiec open62541 Modbus
    75 
    75 
    76 tar_opts=--absolute-names --exclude=.hg --exclude=.git --exclude=.*.pyc --exclude=.*.swp
    76 tar_opts=--absolute-names --exclude=.hg --exclude=.git --exclude=.*.pyc --exclude=.*.swp
    77 
    77 
    78 # sha1 checksum of source is used to force copy/compile on each change
    78 # sha1 checksum of source is used to force copy/compile on each change
    79 
    79 
   103 	cd $(build_dir)/open62541 && \
   103 	cd $(build_dir)/open62541 && \
   104     rm -rf build && mkdir build && cd build && \
   104     rm -rf build && mkdir build && cd build && \
   105 	cmake -D UA_ENABLE_ENCRYPTION=OPENSSL .. && \
   105 	cmake -D UA_ENABLE_ENCRYPTION=OPENSSL .. && \
   106 	make
   106 	make
   107 
   107 
   108 built_apps: $(build_dir)/matiec/iec2c $(build_dir)/beremiz/$(beremiz_checksum).sha1 $(build_dir)/open62541/build/bin/libopen62541.a
   108 $(build_dir)/Modbus/libmb.a: | $(build_dir)/Modbus/$(Modbus_checksum).sha1
       
   109 	cd $(build_dir)/Modbus && \
       
   110 	make
       
   111 
       
   112 
       
   113 built_apps: $(build_dir)/matiec/iec2c $(build_dir)/beremiz/$(beremiz_checksum).sha1 $(build_dir)/open62541/build/bin/libopen62541.a $(build_dir)/Modbus/libmb.a
   109 	touch $@
   114 	touch $@
   110 
   115 
   111 define log_command
   116 define log_command
   112 	$(call $(1),$(2)) | tee test_stdout.txt; exit $$$${PIPESTATUS[0]}
   117 	$(call $(1),$(2)) | tee test_stdout.txt; exit $$$${PIPESTATUS[0]}
   113 endef
   118 endef