Makefiles verbessert.
This commit is contained in:
parent
368dcff9b2
commit
c844656194
2
Makefile
2
Makefile
|
|
@ -29,7 +29,7 @@ modules:
|
|||
|
||||
clean:
|
||||
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
|
||||
rm -rvf */.tmp_versions
|
||||
@rm -rf */.tmp_versions
|
||||
|
||||
doc docs:
|
||||
doxygen Doxyfile
|
||||
|
|
|
|||
|
|
@ -32,11 +32,17 @@ else
|
|||
#------------------------------------------------------------------------------
|
||||
# Default-Abschnitt
|
||||
|
||||
ifneq ($(wildcard ethercat.conf),)
|
||||
include ethercat.conf
|
||||
else
|
||||
KERNELDIR = /lib/modules/`uname -r`/build
|
||||
endif
|
||||
|
||||
modules:
|
||||
$(MAKE) -C ..
|
||||
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
|
||||
|
||||
clean:
|
||||
$(MAKE) -C .. clean
|
||||
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -24,11 +24,17 @@ else
|
|||
#----------------------------------------------------------------
|
||||
# Default-Abschnitt
|
||||
|
||||
ifneq ($(wildcard ethercat.conf),)
|
||||
include ethercat.conf
|
||||
else
|
||||
KERNELDIR = /lib/modules/`uname -r`/build
|
||||
endif
|
||||
|
||||
modules:
|
||||
$(MAKE) -C ..
|
||||
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
|
||||
|
||||
clean:
|
||||
$(MAKE) -C .. clean
|
||||
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
|
||||
|
||||
#----------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
12
rt/Makefile
12
rt/Makefile
|
|
@ -37,11 +37,17 @@ else
|
|||
#------------------------------------------------------------------------------
|
||||
# Default-Abschnitt
|
||||
|
||||
default:
|
||||
$(MAKE) -C ..
|
||||
ifneq ($(wildcard ethercat.conf),)
|
||||
include ethercat.conf
|
||||
else
|
||||
KERNELDIR = /lib/modules/`uname -r`/build
|
||||
endif
|
||||
|
||||
modules:
|
||||
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
|
||||
|
||||
clean:
|
||||
$(MAKE) -C .. clean
|
||||
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue