| 1 | ############################################################ |
|---|
| 2 | # Copyright (c) 2003-2008, Broadcom Corporation |
|---|
| 3 | # All Rights Reserved |
|---|
| 4 | # Confidential Property of Broadcom Corporation |
|---|
| 5 | # |
|---|
| 6 | # THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | # AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | # EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | # |
|---|
| 10 | # $brcm_Workfile: Makefile $ |
|---|
| 11 | # $brcm_Revision: 36 $ |
|---|
| 12 | # $brcm_Date: 5/16/08 2:25p $ |
|---|
| 13 | # |
|---|
| 14 | # Module Description: Top-level Settop API Makefile |
|---|
| 15 | # |
|---|
| 16 | # Created: 02/09/2001 by Marcus Kellerman |
|---|
| 17 | # |
|---|
| 18 | # $brcm_Log: /BSEAV/api/build/Makefile $ |
|---|
| 19 | # |
|---|
| 20 | # 36 5/16/08 2:25p jgarrett |
|---|
| 21 | # PR 42774: Defaulting BUILD_SYSTEM based on nexus |
|---|
| 22 | # |
|---|
| 23 | # 35 10/16/07 12:37p erickson |
|---|
| 24 | # PR36068: api/build/Makefile is now a simple switch based on |
|---|
| 25 | # BUILD_SYSTEM. previous Makefile moved to Makefile.magnum. |
|---|
| 26 | # |
|---|
| 27 | ############################################################ |
|---|
| 28 | |
|---|
| 29 | include tools.mak |
|---|
| 30 | |
|---|
| 31 | # Guess BUILD_SYSTEM based on existence of nexus directory. |
|---|
| 32 | ifndef BUILD_SYSTEM |
|---|
| 33 | ifeq ($(wildcard ../../../nexus),) |
|---|
| 34 | # This is magnum. Leave the variable unset. |
|---|
| 35 | else |
|---|
| 36 | # Nexus code exists. Assume nexus. |
|---|
| 37 | BUILD_SYSTEM := nexus |
|---|
| 38 | endif |
|---|
| 39 | endif |
|---|
| 40 | |
|---|
| 41 | # This should file remain simple. |
|---|
| 42 | # It is only a switch to a BUILD_SYSTEM-specific Makefile. |
|---|
| 43 | |
|---|
| 44 | ifeq ($(BUILD_SYSTEM),nexus) |
|---|
| 45 | all clean veryclean install: |
|---|
| 46 | @$(MAKE) -C nexus $@ |
|---|
| 47 | else |
|---|
| 48 | # Makefile.magnum supports magnum and legacy |
|---|
| 49 | all clean veryclean install: |
|---|
| 50 | @$(MAKE) -f Makefile.magnum $@ |
|---|
| 51 | endif |
|---|