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