author | Wilhelm Hagemeister <hm@igh-essen.com> |
Fri, 04 Nov 2005 17:05:20 +0000 | |
changeset 6 | e36a85dc2730 |
parent 5 | 6f2508af550c |
child 9 | 144d220c8ca0 |
permissions | -rw-r--r-- |
0 | 1 |
################################################################# |
2 |
# |
|
3 |
# Makefile |
|
4 |
# |
|
5 |
# IgH EtherCAT-Treiber |
|
6 |
# |
|
7 |
# $Date$ |
|
8 |
# $Author$ |
|
9 |
# |
|
10 |
################################################################# |
|
11 |
||
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
12 |
#KERNELDIR=/usr/src/linux |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
13 |
#KERNELDIR=/home/rich/linux-2.4.20.CX1100-rthal5 |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
14 |
#KERNELDIR=./linux-2.4.20.CX1100-rthal5 |
0 | 15 |
|
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
16 |
#IgH |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
17 |
KERNELDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/linux-2.4.20.CX1100-rthal5 |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
18 |
RTAIDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/rtai-24.1.13 |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
19 |
RTLIBDIR = rt_lib |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
20 |
|
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
21 |
#euler-nottuln |
0 | 22 |
#KERNELDIR = /usr/src/linux |
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
23 |
#RTAIDIR = /usr/src/rtai |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
24 |
|
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
25 |
#patra |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
26 |
#KERNELDIR = /usr/src/linux-2.4.20.CX1100-rthal5 |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
27 |
#RTAIDIR = /usr/src/rtai-24.1.13 |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
28 |
|
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
29 |
#include $(KERNELDIR)/.config |
0 | 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 |
||
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
34 |
|
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
35 |
CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ -DMODULE \ |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
36 |
-I$(KERNELDIR)/include -D_RTAI -I$(RTAIDIR)/include \ |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
37 |
-I$(RTLIBDIR)/msr-include |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
38 |
|
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
39 |
ifdef CONFIG_SMP |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
40 |
CFLAGS += -D__SMP__ -DSMP |
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
41 |
endif |
0 | 42 |
|
43 |
################################################################# |
|
44 |
||
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
45 |
all: .depend ecat_8139too.o |
0 | 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 |
||
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
58 |
.depend: |
0 | 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 |