1 #------------------------------------------------------------------------------ |
1 #------------------------------------------------------------------------------ |
2 # |
2 # |
3 # $Id$ |
3 # $Id$ |
4 # |
4 # |
5 # Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH |
5 # Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH |
6 # |
6 # |
7 # This file is part of the IgH EtherCAT master userspace library. |
7 # This file is part of the IgH EtherCAT master userspace library. |
8 # |
8 # |
9 # The IgH EtherCAT master userspace library is free software; you can |
9 # The IgH EtherCAT master userspace library is free software; you can |
10 # redistribute it and/or modify it under the terms of the GNU Lesser General |
10 # redistribute it and/or modify it under the terms of the GNU Lesser General |
11 # Public License as published by the Free Software Foundation; version 2.1 of |
11 # Public License as published by the Free Software Foundation; version 2.1 of |
12 # the License. |
12 # the License. |
13 # |
13 # |
14 # The IgH EtherCAT master userspace library is distributed in the hope that |
14 # The IgH EtherCAT master userspace library is distributed in the hope that |
15 # it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
15 # it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
16 # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 # GNU Lesser General Public License for more details. |
17 # GNU Lesser General Public License for more details. |
18 # |
18 # |
19 # You should have received a copy of the GNU Lesser General Public License |
19 # You should have received a copy of the GNU Lesser General Public License |
20 # along with the IgH EtherCAT master userspace library. If not, see |
20 # along with the IgH EtherCAT master userspace library. If not, see |
21 # <http://www.gnu.org/licenses/>. |
21 # <http://www.gnu.org/licenses/>. |
22 # |
22 # |
23 # --- |
23 # --- |
24 # |
24 # |
25 # The license mentioned above concerns the source code only. Using the |
25 # The license mentioned above concerns the source code only. Using the |
26 # EtherCAT technology and brand is only permitted in compliance with the |
26 # EtherCAT technology and brand is only permitted in compliance with the |
27 # industrial property and similar rights of Beckhoff Automation GmbH. |
27 # industrial property and similar rights of Beckhoff Automation GmbH. |
28 # |
28 # |
29 #------------------------------------------------------------------------------ |
29 #------------------------------------------------------------------------------ |
30 |
30 |
31 AM_CFLAGS = -Wall |
|
32 |
|
33 lib_LTLIBRARIES = libethercat.la |
31 lib_LTLIBRARIES = libethercat.la |
34 |
32 |
35 #------------------------------------------------------------------------------ |
33 #------------------------------------------------------------------------------ |
36 |
34 |
37 libethercat_la_LDFLAGS = -version-info 1:0:0 |
|
38 libethercat_la_CFLAGS = -I$(srcdir)/.. -fno-strict-aliasing |
|
39 libethercat_la_SOURCES = \ |
35 libethercat_la_SOURCES = \ |
40 common.c \ |
36 common.c \ |
41 domain.c \ |
37 domain.c \ |
42 master.c \ |
38 master.c \ |
|
39 reg_request.c \ |
43 sdo_request.c \ |
40 sdo_request.c \ |
44 slave_config.c \ |
41 slave_config.c \ |
45 voe_handler.c |
42 voe_handler.c |
46 |
43 |
47 noinst_HEADERS = \ |
44 noinst_HEADERS = \ |
48 domain.h \ |
45 domain.h \ |
|
46 ioctl.h \ |
49 master.h \ |
47 master.h \ |
|
48 reg_request.h \ |
50 sdo_request.h \ |
49 sdo_request.h \ |
51 slave_config.h \ |
50 slave_config.h \ |
52 voe_handler.h |
51 voe_handler.h |
53 |
52 |
|
53 libethercat_la_CFLAGS = -fno-strict-aliasing -Wall |
|
54 libethercat_la_LDFLAGS = -version-info 1:0:0 |
|
55 |
54 #------------------------------------------------------------------------------ |
56 #------------------------------------------------------------------------------ |
|
57 |
|
58 if ENABLE_RTDM |
|
59 |
|
60 lib_LTLIBRARIES += libethercat_rtdm.la |
|
61 |
|
62 libethercat_rtdm_la_SOURCES = $(libethercat_la_SOURCES) |
|
63 libethercat_rtdm_la_CFLAGS = $(libethercat_la_CFLAGS) -DUSE_RTDM |
|
64 libethercat_rtdm_la_LDFLAGS = $(libethercat_la_LDFLAGS) |
|
65 |
|
66 if ENABLE_XENOMAI |
|
67 libethercat_rtdm_la_CFLAGS += $(XENOMAI_RTDM_CFLAGS) |
|
68 libethercat_rtdm_la_LDFLAGS += $(XENOMAI_RTDM_LDFLAGS) |
|
69 endif |
|
70 |
|
71 if ENABLE_RTAI |
|
72 libethercat_rtdm_la_CFLAGS += $(RTAI_LXRT_CFLAGS) |
|
73 libethercat_rtdm_la_LDFLAGS += $(RTAI_LXRT_LDFLAGS) |
|
74 endif |
|
75 |
|
76 endif |
|
77 |
|
78 #------------------------------------------------------------------------------ |