qhuang8 | c69f724 | 2010-03-04 11:57:31 +0000 | [diff] [blame] | 1 | ## @file
|
Liming Gao | 4afd3d0 | 2013-08-23 02:18:16 +0000 | [diff] [blame] | 2 | # GNU/Linux makefile for Base Tools project build.
|
qhuang8 | c69f724 | 2010-03-04 11:57:31 +0000 | [diff] [blame] | 3 | #
|
lgao4 | 40d841f | 2010-05-18 05:04:32 +0000 | [diff] [blame] | 4 | # Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
| 5 | # This program and the accompanying materials
|
qhuang8 | c69f724 | 2010-03-04 11:57:31 +0000 | [diff] [blame] | 6 | # are licensed and made available under the terms and conditions of the BSD License
|
| 7 | # which accompanies this distribution. The full text of the license may be found at
|
| 8 | # http://opensource.org/licenses/bsd-license.php
|
| 9 | #
|
| 10 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 11 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
| 12 | #
|
| 13 |
|
| 14 | all: subdirs
|
| 15 |
|
| 16 | LANGUAGES = C Python
|
| 17 |
|
| 18 | SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES)))
|
| 19 | SUBDIRS := $(SOURCE_SUBDIRS) Tests
|
| 20 | CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS)))
|
| 21 |
|
| 22 | .PHONY: subdirs $(SUBDIRS)
|
| 23 | subdirs: $(SUBDIRS)
|
| 24 | $(SUBDIRS):
|
| 25 | $(MAKE) -C $@
|
| 26 |
|
| 27 | .PHONY: $(CLEAN_SUBDIRS)
|
| 28 | $(CLEAN_SUBDIRS):
|
| 29 | -$(MAKE) -C $(@:-clean=) clean
|
| 30 |
|
| 31 | clean: $(CLEAN_SUBDIRS)
|
| 32 |
|
| 33 | test:
|
| 34 | @$(MAKE) -C Tests
|
| 35 |
|