1 ##############################################################################
4 # @brief Makefile to build CDCM and driver utils (including XML library)
6 # @author Copyright (C) 2009 CERN. Yury GEORGIEVSKIY <ygeorgie@cern.ch>
8 # @date Created on 26/08/2009
9 ###############################################################################
11 # Where everything is nested
12 ROOTDIR
= $(CURDIR
)/..
14 include .
/Makefile.specific
15 include $(ROOTDIR
)/makefiles
/rules.mk
17 # Include generic definitions
18 include $(ROOTDIR
)/makefiles
/Kbuild.
include
21 MAKEFLAGS
+= --no-print-directory
23 # By default -- Rebuild all, including CDCM, XML library and driver utilities.
26 #################################################
27 # Verbose output. Can be used for debugging
29 # pass SHELL="$(SHELL)" as a parameter to Kmake
30 #################################################
34 @
-rm -rf .
/$(CPU
)/$(KVER
)
35 $(MAKE
) -C
$(KSRC
) M
=$(shell pwd
) CPU
=$(CPU
) \
36 ROOTDIR
=$(ROOTDIR
) KVER
=$(KVER
) modules
37 @
-rm -r .
*.cmd Module.symvers .tmp_versions
/
38 @
-rm -rf .
/Module.markers .
/modules.order
40 # Driver utilities (including XML library) only
41 USRC
:= $(ROOTDIR
)/utils
/driver
43 @
-rm -rf
$(USRC
)/$(CPU
)/$(KVER
)
45 $(MAKE
) -C
$(KSRC
) M
=$(USRC
) CPU
=$(CPU
) \
46 ROOTDIR
=$(ROOTDIR
) KVER
=$(KVER
) modules
47 @
-rm -rf
$(USRC
)/.
*.cmd
$(USRC
)/Module.symvers
$(USRC
)/.tmp_versions
/
48 @
-rm -rf
$(USRC
)/Module.markers
$(USRC
)/modules.order
54 ..
/doxy
/doxy.sh
-n
"Common Driver Code Manager (aka CDCM)" -o
"man" .
/