beremiz
Clone
Summary
Browse
Changes
Graph
ToolChain: add IEC library include paths to CFLAGS when building C code from extensions.
py2compat
23 months ago, Edouard Tisserant
90a67418b8cf
ToolChain: add IEC library include paths to CFLAGS when building C code from extensions.
This allows generated C code to include beremiz.h, and other IEC types definitions.
BEREMIZ_OBJS = $(BEREMIZSRC:.c=.o)
all: warn some_binary
@echo "*** all done ***"
warn:
@echo "*** Sample Makefile, does nothing ***"
some_binary: $(BEREMIZ_OBJS)
@echo "* Would link $^ -> $@"
%.o: %.c
@echo "* Would compile $< -> $@"