plcopen/Makefile
author Edouard Tisserant
Thu, 29 Jan 2015 19:11:34 +0100
changeset 1432 8872223a675b
parent 1353 fc7aab64589b
child 1936 b85b13b1c2ec
permissions -rw-r--r--
Optimized plc_debug.c generated code. Should produce smaller code size. Added statically initialized array for PLC tracable variable description.
#! gmake

yml := ../../yml2
ysl2files := $(wildcard *.ysl2)
xsltfiles := $(patsubst %.ysl2, %.xslt, $(ysl2files))

all:$(xsltfiles)

%.xslt: %.ysl2
	$(yml)/yml2c -I $(yml) $< -o $@.tmp
	xmlstarlet fo $@.tmp > $@
	rm $@.tmp
	
clean:
	rm -f $(xsltfiles)