win32.mk
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sat, 13 Aug 2022 15:51:59 +0200
changeset 86 3564991cd359
parent 81 a95b2fa896e9
child 120 02e37d9e96a9
permissions -rw-r--r--
SNAP: replace lxml versions to be compatible with Beremiz.

Forcing ubuntu20 python-lxml (4.5.0) package instead of PIP vesrion (4.9.1).
4.9.1 leads to derived variable types to appear as "derived" instead of real type name.
Problem happens with plcopen/variables_infos.ysl2 and plcopen/VariableInfoCollector.py.
No clue for now about what really breaks.
# Win32 only distribution

main_target: Beremiz-installer

include $(src)/windows_installer.mk

ide_targets_from_dist: canfestival
	touch $@

canfestival_dir = installer/canfestival
canfestival: $(canfestival_dir)/.stamp
$(canfestival_dir)/.stamp: sources/canfestival_src | installer
canfestival: $(canfestival_dir)/.stamp
	rm -rf $(canfestival_dir)
	cp -a sources/canfestival $(canfestival_dir)
	cd $(canfestival_dir); \
	./configure --can=tcp_win32 \
				--cc=$(CC) \
				--cxx=$(CXX) \
				--target=win32 \
				--wx=0
	$(MAKE) -C $(canfestival_dir)
	cd $(canfestival_dir); find . -name "*.o" -exec rm {} ';' #remove object files only
	touch $@