author | Florian Pose <fp@igh-essen.com> |
Fri, 04 Nov 2005 17:16:12 +0000 | |
changeset 7 | a5c18da4e781 |
parent 5 | 6f2508af550c |
child 9 | 144d220c8ca0 |
permissions | -rw-r--r-- |
0 | 1 |
#---------------------------------------------------------------- |
2 |
# |
|
3 |
# Makefile |
|
4 |
# |
|
5 |
# Minimales EtherCAT-Modul |
|
6 |
# |
|
7 |
# $Id$ |
|
8 |
# |
|
9 |
#---------------------------------------------------------------- |
|
10 |
||
5
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
11 |
EC_DIR = /vol/projekte/msr_messen_steuern_regeln/ethercat |
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
12 |
|
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
13 |
#KERNELDIR = $(EC_DIR)/linux-2.4.20.CX1100-rthal5-kdb |
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
14 |
KERNELDIR = $(EC_DIR)/linux-2.4.20-kdb |
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
15 |
#KERNELDIR = /usr/src/linux |
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
16 |
|
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
17 |
CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ \ |
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
18 |
-DMODULE -I$(KERNELDIR)/include |
0 | 19 |
|
20 |
MODULE = ec_mini_mod.o |
|
21 |
||
5
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
22 |
SRC = ec_mini.c |
0 | 23 |
OBJ = $(SRC:.c=.o) |
24 |
||
25 |
#---------------------------------------------------------------- |
|
26 |
||
27 |
all: .depend Makefile $(MODULE) |
|
28 |
||
29 |
$(MODULE): $(OBJ) |
|
30 |
$(LD) -r $(OBJ) -o $@ |
|
31 |
||
32 |
#---------------------------------------------------------------- |
|
33 |
||
34 |
depend .depend dep: |
|
35 |
$(CC) $(CFLAGS) -M $(SRC) > .depend |
|
36 |
||
37 |
ifeq (.depend,$(wildcard .depend)) |
|
38 |
include .depend |
|
39 |
endif |
|
40 |
||
41 |
#---------------------------------------------------------------- |
|
42 |
||
43 |
clean: |
|
44 |
rm -f *.o *~ core .depend |
|
45 |
||
46 |
#---------------------------------------------------------------- |