tests/Makefile
changeset 3960 9271afc4f34a
parent 3955 792ae5ff01ca
equal deleted inserted replaced
3954:5744391252ec 3960:9271afc4f34a
    69 
    69 
    70 #
    70 #
    71 # SOURCE and BUILD
    71 # SOURCE and BUILD
    72 #
    72 #
    73 
    73 
    74 BUILT_PROJECTS=beremiz matiec open62541 Modbus
    74 BUILT_PROJECTS=beremiz matiec open62541 Modbus erpc
    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 
   107 
   107 
   108 $(build_dir)/Modbus/libmb.a: | $(build_dir)/Modbus/$(Modbus_checksum).sha1
   108 $(build_dir)/Modbus/libmb.a: | $(build_dir)/Modbus/$(Modbus_checksum).sha1
   109 	cd $(build_dir)/Modbus && \
   109 	cd $(build_dir)/Modbus && \
   110 	make
   110 	make
   111 
   111 
   112 
   112 $(build_dir)/beremiz/C_runtime/beremiz_runtime: | $(build_dir)/erpc/$(erpc_checksum).sha1
   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
   113 	cd $(build_dir)/beremiz/C_runtime && \
       
   114 	make
       
   115 
       
   116 built_apps: $(build_dir)/matiec/iec2c $(build_dir)/beremiz/$(beremiz_checksum).sha1 $(build_dir)/open62541/build/bin/libopen62541.a $(build_dir)/Modbus/libmb.a $(build_dir)/beremiz/C_runtime/beremiz_runtime
   114 	touch $@
   117 	touch $@
   115 
   118 
   116 define log_command
   119 define log_command
   117 	$(call $(1),$(2)) | tee test_stdout.txt; exit $$$${PIPESTATUS[0]}
   120 	$(call $(1),$(2)) | tee test_stdout.txt; exit $$$${PIPESTATUS[0]}
   118 endef
   121 endef