ethercat/examples/xenomai/Makefile.am

51 lines
1.6 KiB
Makefile

#------------------------------------------------------------------------------
#
# Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH
#
# This file is part of the IgH EtherCAT Master.
#
# The IgH EtherCAT Master is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 2, as
# published by the Free Software Foundation.
#
# The IgH EtherCAT Master is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# the IgH EtherCAT Master; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#------------------------------------------------------------------------------
noinst_PROGRAMS = ec_xenomai_example
ec_xenomai_example_SOURCES = main.c
ec_xenomai_example_CFLAGS = \
-Wall \
-I$(top_srcdir)/include
ec_xenomai_example_LDFLAGS = \
-L$(top_builddir)/lib/.libs -lethercat_rtdm
if ENABLE_XENOMAI_V3
ec_xenomai_example_CFLAGS += \
-DXENOMAI_API_V3 \
$(XENOMAI_ALCHEMY_CFLAGS)
ec_xenomai_example_LDFLAGS += \
$(XENOMAI_ALCHEMY_LDFLAGS)
else
ec_xenomai_example_CFLAGS += \
$(XENOMAI_NATIVE_CFLAGS) \
$(XENOMAI_RTDM_CFLAGS)
ec_xenomai_example_LDFLAGS += \
$(XENOMAI_NATIVE_LDFLAGS) \
$(XENOMAI_RTDM_LDFLAGS)
endif
#------------------------------------------------------------------------------