Makefile
branchkernel2.6
changeset 26 60435f959e5c
parent 22 e8c2cd004e0b
child 45 f525f7db2d90
equal deleted inserted replaced
25:7d124bfba3ce 26:60435f959e5c
    14 include $(CONFIG_FILE)
    14 include $(CONFIG_FILE)
    15 endif
    15 endif
    16 
    16 
    17 #----------------------------------------------------------------
    17 #----------------------------------------------------------------
    18 
    18 
    19 all: .rs232dbg .drivers .rt .mini
    19 all: .drivers .rt .mini
    20 
    20 
    21 doc docs:
    21 doc docs:
    22 	doxygen Doxyfile
    22 	doxygen Doxyfile
    23 
    23 
    24 .drivers:
    24 .drivers:
    30 else
    30 else
    31 .rt:
    31 .rt:
    32 	@echo "Skipping Real-Time."
    32 	@echo "Skipping Real-Time."
    33 endif
    33 endif
    34 
    34 
    35 ifeq ($(MAKE_RS232),yes)
       
    36 .rs232dbg:
       
    37 	$(MAKE) -C rs232dbg
       
    38 else
       
    39 .rs232dbg:
       
    40 	@echo "Skipping rs232dbg."
       
    41 endif
       
    42 
       
    43 .mini:
    35 .mini:
    44 	$(MAKE) -C mini
    36 	$(MAKE) -C mini
    45 
    37 
    46 config conf $(CONFIG_FILE):
    38 config conf $(CONFIG_FILE):
    47 	@echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE)
    39 	@echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE)
    48 	@echo >> $(CONFIG_FILE)
    40 	@echo >> $(CONFIG_FILE)
    49 	@echo "KERNELDIR = /usr/src/linux" >> $(CONFIG_FILE)
    41 	@echo "KERNELDIR = /usr/src/linux" >> $(CONFIG_FILE)
    50 	@echo "RTAIDIR   =" >> $(CONFIG_FILE)
    42 	@echo "RTAIDIR   =" >> $(CONFIG_FILE)
    51 	@echo "RTLIBDIR  =" >> $(CONFIG_FILE)
    43 	@echo "RTLIBDIR  =" >> $(CONFIG_FILE)
    52 	@echo >> $(CONFIG_FILE)
    44 	@echo >> $(CONFIG_FILE)
    53 	@echo "#GCC_SYSTEMDIR = /usr/lib/gcc-lib/i486-suse-linux/3.3/include" >> $(CONFIG_FILE)
       
    54 	@echo >> $(CONFIG_FILE)
       
    55 	@echo "MAKE_RT    = yes" >> $(CONFIG_FILE)
    45 	@echo "MAKE_RT    = yes" >> $(CONFIG_FILE)
    56 	@echo "MAKE_RS232 = yes" >> $(CONFIG_FILE)
       
    57 	@echo >> $(CONFIG_FILE)
    46 	@echo >> $(CONFIG_FILE)
    58 	@echo "$(CONFIG_FILE) erstellt."
    47 	@echo "$(CONFIG_FILE) erstellt."
    59 
    48 
    60 clean:
    49 clean:
    61 	$(MAKE) -C rt clean
    50 	$(MAKE) -C rt clean
    62 	$(MAKE) -C drivers clean
    51 	$(MAKE) -C drivers clean
    63 	$(MAKE) -C rs232dbg clean
       
    64 	$(MAKE) -C mini clean
    52 	$(MAKE) -C mini clean
    65 
    53 
    66 #----------------------------------------------------------------
    54 #----------------------------------------------------------------