21 # |
21 # |
22 # You should have received a copy of the GNU General Public License |
22 # You should have received a copy of the GNU General Public License |
23 # along with the IgH EtherCAT Master; if not, write to the Free Software |
23 # along with the IgH EtherCAT Master; if not, write to the Free Software |
24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
25 # |
25 # |
26 #---------------------------------------------------------------- |
26 #------------------------------------------------------------------------------ |
27 |
27 |
28 ifneq ($(KERNELRELEASE),) |
28 ifneq ($(KERNELRELEASE),) |
29 |
29 |
30 #---------------------------------------------------------------- |
30 #------------------------------------------------------------------------------ |
31 # kbuild section |
31 # kbuild section |
32 #---------------------------------------------------------------- |
32 #------------------------------------------------------------------------------ |
33 |
33 |
34 obj-m := ec_mini.o |
34 obj-m := ec_rtai_sample.o |
35 |
35 |
36 ec_mini-objs := mini.o |
36 ec_rtai_sample-objs := rtai_sample.o |
37 |
37 |
38 #---------------------------------------------------------------- |
38 #------------------------------------------------------------------------------ |
39 |
39 |
40 else |
40 else |
41 |
41 |
42 #---------------------------------------------------------------- |
42 #------------------------------------------------------------------------------ |
43 # default section |
43 # default section |
44 #---------------------------------------------------------------- |
44 #------------------------------------------------------------------------------ |
45 |
45 |
46 ifneq ($(wildcard ethercat.conf),) |
46 ifneq ($(wildcard kernel.conf),) |
47 include ethercat.conf |
47 include kernel.conf |
48 else |
48 else |
49 KERNELDIR = /usr/src/linux |
49 KERNELDIR = /usr/src/linux |
50 endif |
50 endif |
51 |
51 |
52 modules: |
52 modules: |
53 $(MAKE) -C $(KERNELDIR) M=`pwd` |
53 $(MAKE) -C $(KERNELDIR) M=`pwd` |
54 |
54 |
55 clean: |
55 clean: |
56 $(MAKE) -C $(KERNELDIR) M=`pwd` clean |
56 $(MAKE) -C $(KERNELDIR) M=`pwd` clean |
57 |
57 |
58 #---------------------------------------------------------------- |
58 #------------------------------------------------------------------------------ |
59 |
59 |
60 endif |
60 endif |