-
Notifications
You must be signed in to change notification settings - Fork 230
/
Makefile
75 lines (61 loc) · 1.6 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
################################################################################
#
# Copyright (c) 2012 Minoca Corp.
#
# This file is licensed under the terms of the GNU General Public License
# version 3. Alternative licensing terms are available. Contact
# [email protected] for details. See the LICENSE file at the root of this
# project for complete licensing information.
#
# Module Name:
#
# Minoca OS
#
# Abstract:
#
# This file is responsible for kicking off the build of all source
# directories.
#
# Author:
#
# Evan Green 19-Jun-2012
#
# Environment:
#
# Build
#
################################################################################
##
## Check for the necessary environment variables.
##
ifndef SRCROOT
$(error Error: Environment not set up: SRCROOT environment variable missing)
endif
ifndef ARCH
$(error Error: Environment not set up: ARCH environment variable missing)
endif
ifndef DEBUG
$(error Error: Environment not set up: DEBUG environment variable missing)
endif
LIBRARIES = lib \
COMPONENTS = apps \
boot \
drivers \
kernel \
uefi \
DIRS = $(LIBRARIES) \
$(COMPONENTS) \
images
include $(SRCROOT)/os/minoca.mk
images: $(COMPONENTS)
$(COMPONENTS): $(LIBRARIES)
##
## Boot and UEFI need KD from the kernel (which could be moved out to a
## library). Drivers and apps (which may also build some drivers) link against
## the kernel.
##
boot drivers apps uefi: kernel
##
## Boot relies on UEFI for the elfconv tool.
##
boot: uefi