0
|
1 |
#################################################################
|
|
2 |
#
|
|
3 |
# Makefile
|
|
4 |
#
|
|
5 |
# IgH EtherCAT-Treiber
|
|
6 |
#
|
|
7 |
# $Date$
|
|
8 |
# $Author$
|
|
9 |
#
|
|
10 |
#################################################################
|
|
11 |
|
|
12 |
#KERNELDIR=/usr/src/linux
|
|
13 |
#KERNELDIR=/home/rich/linux-2.4.20.CX1100-rthal5
|
|
14 |
#KERNELDIR=./linux-2.4.20.CX1100-rthal5
|
|
15 |
|
|
16 |
#IgH
|
|
17 |
KERNELDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/linux-2.4.20.CX1100-rthal5
|
|
18 |
RTAIDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/rtai-24.1.13
|
|
19 |
RTLIBDIR = rt_lib
|
|
20 |
|
|
21 |
#euler-nottuln
|
|
22 |
#KERNELDIR = /usr/src/linux
|
|
23 |
#RTAIDIR = /usr/src/rtai
|
|
24 |
|
|
25 |
#patra
|
|
26 |
#KERNELDIR = /usr/src/linux-2.4.20.CX1100-rthal5
|
|
27 |
#RTAIDIR = /usr/src/rtai-24.1.13
|
|
28 |
|
|
29 |
#include $(KERNELDIR)/.config
|
|
30 |
|
|
31 |
ECAT_8139_OBJ = drv_8139too.o ec_device.o ec_master.o \
|
|
32 |
ec_slave.o ec_command.o ec_types.o
|
|
33 |
|
|
34 |
|
|
35 |
CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ -DMODULE \
|
|
36 |
-I$(KERNELDIR)/include -D_RTAI -I$(RTAIDIR)/include \
|
|
37 |
-I$(RTLIBDIR)/msr-include
|
|
38 |
|
|
39 |
ifdef CONFIG_SMP
|
|
40 |
CFLAGS += -D__SMP__ -DSMP
|
|
41 |
endif
|
|
42 |
|
|
43 |
#################################################################
|
|
44 |
|
|
45 |
all: .depend ecat_8139too.o
|
|
46 |
|
|
47 |
ecat_8139too.o: $(ECAT_8139_OBJ)
|
|
48 |
$(LD) -r $(ECAT_8139_OBJ) -o $@
|
|
49 |
|
|
50 |
.c.o:
|
|
51 |
$(CC) $(CFLAGS) -c -o $@ $<
|
|
52 |
|
|
53 |
doc docs:
|
|
54 |
$(MAKE) -C .. doc
|
|
55 |
|
|
56 |
#################################################################
|
|
57 |
|
|
58 |
.depend:
|
|
59 |
$(CC) $(CFLAGS) -M *.c > .depend
|
|
60 |
|
|
61 |
ifeq (.depend,$(wildcard .depend))
|
|
62 |
include .depend
|
|
63 |
endif
|
|
64 |
|
|
65 |
#################################################################
|
|
66 |
|
|
67 |
clean:
|
|
68 |
rm -f *.o *~ core .depend
|
|
69 |
|
|
70 |
#################################################################
|
|
71 |
|