• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5!IF "$(MOD)" == ""
6!ERROR MOD (Make output dir) is not defined
7!ENDIF
8
9O = $(MOD)
10R = z:\shared\vboot_reference
11
12ALL_OBJS = $O\main.obj $O\stateful_util.obj $O\cgptlib_internal.obj	       \
13  $O\cgptlib.obj $O\crc32.obj $O\vboot_common.obj $O\vboot_kernel.obj	       \
14  $O\vboot_firmware.obj $O\rollback_index.obj $O\sha_utility.obj $O\rsa.obj    \
15  $O\rsa_utility.obj $O\padding.obj $O\sha2.obj $O\sha1.obj		       \
16  $O\load_firmware_stub.obj $O\tlcl.obj $O\utility_stub.obj		       \
17  $O\boot_device_stub.obj $O\crc32_test.obj $O\rollback_index_mock.obj	       \
18  $O\test_common.obj $O\cgptlib_test.obj $O\rsa_padding_test.obj	       \
19  $O\sha_tests.obj $O\vboot_common_tests.obj $O\vboot_common2_tests.obj	       \
20  $O\vboot_common3_tests.obj
21
22CFLAGS = $(CFLAGS) /I $R\firmware\lib\include
23CFLAGS = $(CFLAGS) /I $R\firmware\lib\cgptlib\include
24CFLAGS = $(CFLAGS) /I $R\firmware\include
25CFLAGS = $(CFLAGS) /I $R\firmware\stub\include
26CFLAGS = $(CFLAGS) /I $R\firmware\lib\cryptolib\include
27CFLAGS = $(CFLAGS) /I $R\host\include
28
29CFLAGS = $(CFLAGS) /W4 /WX /D TARGET_TEST_MODE
30
31COMPILE = $(CC) $(CFLAGS) /Fo$@ -c $<
32
33all: $(ALL_OBJS)
34
35{$R\firmware\linktest}.c{$O}.obj:
36	$(COMPILE)
37
38{$R\firmware\lib}.c{$O}.obj:
39	$(COMPILE)
40
41{$R\firmware\lib\cgptlib}.c{$O}.obj:
42	$(COMPILE)
43
44{$R\firmware\lib\cryptolib}.c{$O}.obj:
45	$(COMPILE)
46
47{$R\firmware\stub}.c{$O}.obj:
48	$(COMPILE)
49
50{$R\tests}.c{$O}.obj:
51	$(COMPILE)
52
53#{$R\cgpt}.c{$O}.obj:
54#$R/firmware/lib/cgptlibc.$O.obj:
55#$R/firmware/lib/cryptolibc.$O.obj:
56#$R/firmware/stubc.$O.obj:
57#$R/utilityc.$O.obj:
58#	$(CC) $(CFLAGS) -Fd$O\ -c $<
59