diff options
Diffstat (limited to 'drivers/net/wireless/bcmdhd/include/Makefile')
| -rw-r--r-- | drivers/net/wireless/bcmdhd/include/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/include/Makefile b/drivers/net/wireless/bcmdhd/include/Makefile new file mode 100644 index 00000000000..c07266fd6fd --- /dev/null +++ b/drivers/net/wireless/bcmdhd/include/Makefile | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # | ||
| 3 | # This script serves following purpose: | ||
| 4 | # | ||
| 5 | # 1. It generates native version information by querying | ||
| 6 | # automerger maintained database to see where src/include | ||
| 7 | # came from | ||
| 8 | # 2. For select components, as listed in compvers.sh | ||
| 9 | # it generates component version files | ||
| 10 | # | ||
| 11 | # Copyright 2005, Broadcom, Inc. | ||
| 12 | # | ||
| 13 | # $Id: Makefile 241702 2011-02-19 00:41:03Z automrgr $ | ||
| 14 | # | ||
| 15 | |||
| 16 | SRCBASE := .. | ||
| 17 | |||
| 18 | TARGETS := epivers.h | ||
| 19 | |||
| 20 | ifdef VERBOSE | ||
| 21 | export VERBOSE | ||
| 22 | endif | ||
| 23 | |||
| 24 | all release: epivers compvers | ||
| 25 | |||
| 26 | # Generate epivers.h for native branch version | ||
| 27 | epivers: | ||
| 28 | bash epivers.sh | ||
| 29 | |||
| 30 | # Generate epivers.h for native branch version | ||
| 31 | compvers: | ||
| 32 | @if [ -s "compvers.sh" ]; then \ | ||
| 33 | echo "Generating component versions, if any"; \ | ||
| 34 | bash compvers.sh; \ | ||
| 35 | else \ | ||
| 36 | echo "Skipping component version generation"; \ | ||
| 37 | fi | ||
| 38 | |||
| 39 | # Generate epivers.h for native branch version | ||
| 40 | clean_compvers: | ||
| 41 | @if [ -s "compvers.sh" ]; then \ | ||
| 42 | echo "bash compvers.sh clean"; \ | ||
| 43 | bash compvers.sh clean; \ | ||
| 44 | else \ | ||
| 45 | echo "Skipping component version clean"; \ | ||
| 46 | fi | ||
| 47 | |||
| 48 | clean: | ||
| 49 | rm -f $(TARGETS) *.prev | ||
| 50 | |||
| 51 | clean_all: clean clean_compvers | ||
| 52 | |||
| 53 | .PHONY: all release clean epivers compvers clean_compvers | ||
