stage1_2/Makefile.am
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 06 May 2016 11:48:02 +0300
changeset 1008 59435d4c5e0c
parent 871 878e9bf4c6ec
child 1015 9414b0785849
permissions -rw-r--r--
fix compilation error about missing braces

IEC_TIMESPEC has two fields tv_sec and tv_nsec.

Compilation error:
./build/POUS.c:600:45: error: missing braces around initializer [-Werror=missing-braces]
static const STEP temp_step = {{0, 0}, 0, {0, 0}};
^
compilation terminated due to -Wfatal-errors.
include ../common.mk

AM_YFLAGS = -d
AM_LFLAGS = -o$(LEX_OUTPUT_ROOT).c

# Make sure this header file is generated first (by bison), as it is included
# by other C++ code that will also be compiled.
BUILT_SOURCES = iec_bison.hh

%.hh: %.h
	cp $< $@

CLEANFILES = \
	iec_flex.cc \
	iec_bison.cc \
	iec_bison.hh

lib_LIBRARIES = libstage1_2.a
libstage1_2_a_SOURCES = \
	iec_flex.ll \
	iec_bison.yy \
    create_enumtype_conversion_functions.cc \
	stage1_2.cc 

libstage1_2_a_CPPFLAGS =  -DDEFAULT_LIBDIR='"lib"' -I../../absyntax -DYY_BUF_SIZE=65536 -fpermissive