BaseTools: Add Brotli algorithm tool
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / Makefile
1 ## @file
2 # Windows makefile for 'Brotli' module build.
3 #
4 # Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
5 # This program and the accompanying materials
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 !INCLUDE ..\Makefiles\ms.common
14
15 CFLAGS = $(CFLAGS) /W2
16
17 APPNAME = Brotli
18
19 #LIBS = $(LIB_PATH)\Common.lib
20
21 COMMON_OBJ = common\dictionary.obj
22 DEC_OBJ = \
23 dec\bit_reader.obj \
24 dec\decode.obj \
25 dec\huffman.obj \
26 dec\state.obj
27 ENC_OBJ = \
28 enc\backward_references.obj \
29 enc\bit_cost.obj \
30 enc\block_splitter.obj \
31 enc\brotli_bit_stream.obj \
32 enc\cluster.obj \
33 enc\compress_fragment.obj \
34 enc\compress_fragment_two_pass.obj \
35 enc\encode.obj \
36 enc\entropy_encode.obj \
37 enc\histogram.obj \
38 enc\literal_cost.obj \
39 enc\memory.obj \
40 enc\metablock.obj \
41 enc\static_dict.obj \
42 enc\utf8_util.obj
43
44 OBJECTS = \
45 tools\bro.obj \
46 $(COMMON_OBJ) \
47 $(DEC_OBJ) \
48 $(ENC_OBJ)
49
50 !INCLUDE ..\Makefiles\ms.app
51
52 all: $(BIN_PATH)\BrotliCompress.bat
53
54 $(BIN_PATH)\BrotliCompress.bat: BrotliCompress.bat
55 copy BrotliCompress.bat $(BIN_PATH)\BrotliCompress.bat /Y
56
57 cleanall: localCleanall
58
59 localCleanall:
60 del /f /q $(BIN_PATH)\BrotliCompress.bat > nul