equal
deleted
inserted
replaced
1 #---------------------------------------------------------------- |
|
2 # |
|
3 # Makefile |
|
4 # |
|
5 # Kernel-Debugging über die serielle Schnittstelle |
|
6 # |
|
7 # $Id$ |
|
8 # |
|
9 #---------------------------------------------------------------- |
|
10 |
|
11 CONFIG_FILE = ../kerneldirs.mk |
|
12 |
|
13 ifeq ($(CONFIG_FILE),$(wildcard $(CONFIG_FILE))) |
|
14 include $(CONFIG_FILE) |
|
15 else |
|
16 KERNELDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/linux-2.4.20.CX1100-rthal5 |
|
17 RTAIDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/rtai-24.1.13 |
|
18 RTLIBDIR = rt_lib |
|
19 endif |
|
20 |
|
21 CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ -DMODULE \ |
|
22 -I$(KERNELDIR)/include -D_RTAI -I$(RTAIDIR)/include -I$(RTLIBDIR)/msr-include |
|
23 |
|
24 MODULE = sdbg.o |
|
25 SRC = rs232dbg.c aip_com.c |
|
26 OBJ = $(SRC:.c=.o) |
|
27 |
|
28 #---------------------------------------------------------------- |
|
29 |
|
30 all: .output_dirs .depend $(MODULE) Makefile |
|
31 |
|
32 $(MODULE): $(OBJ) |
|
33 $(LD) -r $(OBJ) -o $@ |
|
34 |
|
35 .c.o: |
|
36 $(CC) -c $(CFLAGS) $< -o $@ |
|
37 |
|
38 .output_dirs: |
|
39 @echo "x-- Directories -------------" |
|
40 @echo "| Kernel $(KERNELDIR)" |
|
41 @echo "| RTAI $(RTAIDIR)" |
|
42 @echo "| RT_lib $(RTLIBDIR)" |
|
43 @echo "x----------------------------" |
|
44 |
|
45 depend .depend dep: |
|
46 $(CC) $(CFLAGS) -M $(SRC) > .depend |
|
47 |
|
48 clean: |
|
49 rm -f *.o *~ core .depend |
|
50 |
|
51 #---------------------------------------------------------------- |
|
52 |
|
53 ifeq (.depend,$(wildcard .depend)) |
|
54 include .depend |
|
55 endif |
|
56 |
|
57 #---------------------------------------------------------------- |
|