fp@9: #---------------------------------------------------------------- fp@9: # fp@9: # Makefile fp@9: # fp@9: # Kernel-Debugging über die serielle Schnittstelle fp@9: # fp@9: # $Id$ fp@9: # fp@9: #---------------------------------------------------------------- fp@0: fp@9: KERNEL_DIRS_FILE = ../kerneldirs.mk fp@0: fp@9: ifeq ($(KERNEL_DIRS_FILE),$(wildcard $(KERNEL_DIRS_FILE))) fp@9: include $(KERNEL_DIRS_FILE) fp@9: else fp@9: KERNELDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/linux-2.4.20.CX1100-rthal5 fp@9: RTAIDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/rtai-24.1.13 fp@9: RTLIBDIR = rt_lib fp@9: endif fp@9: fp@9: ifeq (.depend,$(wildcard .depend)) fp@9: include .depend fp@9: endif fp@0: fp@5: CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ -DMODULE \ fp@5: -I$(KERNELDIR)/include -D_RTAI -I$(RTAIDIR)/include -I$(RTLIBDIR)/msr-include fp@0: fp@9: MODULE = sdbg.o fp@9: SRC = rs232dbg.c aip_com.c fp@9: OBJ = $(SRC:.c=.o) fp@0: fp@9: #---------------------------------------------------------------- fp@0: fp@9: all: .output_dirs .depend $(MODULE) Makefile fp@0: fp@9: $(MODULE): $(OBJ) fp@9: $(LD) -r $(OBJ) -o $@ fp@0: fp@9: .c.o: fp@9: $(CC) -c $(CFLAGS) $< -o $@ fp@0: fp@9: .output_dirs: fp@9: @echo "x-- Directories -------------" fp@9: @echo "| Kernel $(KERNELDIR)" fp@9: @echo "| RTAI $(RTAIDIR)" fp@9: @echo "| RT_lib $(RTLIBDIR)" fp@9: @echo "x----------------------------" fp@0: fp@9: depend .depend dep: fp@9: $(CC) $(CFLAGS) -M $(SRC) > .depend fp@0: fp@0: clean: fp@0: rm -f *.o *~ core .depend fp@0: fp@9: #----------------------------------------------------------------