-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 909 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Project name and version
export RC_ProjectName := xBoot
export RC_ProjectSourceVersion := 67
export RC_ProjectBuildVersion := 4
export SRCROOT := $(CURDIR)
export OBJROOT := $(SRCROOT)
export TOOLDIR := $(SRCROOT)/tools
# Default build style
export BUILD ?= DEBUG
# Main build target
export TARGET := xboot.$(PLATFORM).$(BUILD)
include $(SRCROOT)/make/vars.mk
include $(SRCROOT)/make/tools.mk
ifdef PLATFORM
BSP_DIR := $(SRCROOT)/bsp/$(PLATFORM)
BSP_MKFILE := $(BSP_DIR)/bsp.mk
ifneq ("$(wildcard $(BSP_MKFILE))","")
include $(BSP_MKFILE)
else
$(error Unsupported platform "$(PLATFORM)" specified. Run "make help" for a list of supported platforms.)
endif
endif
include $(SRCROOT)/make/dirs.mk
include $(SRCROOT)/make/build.mk
include $(SRCROOT)/make/flags.mk
export DERIVED_SOURCES_DIR := $(BUILD_GEN)
include $(SRCROOT)/make/rules.mk