| OLD | NEW | 
|   1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |   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 |   2 # Use of this source code is governed by a BSD-style license that can be | 
|   3 # found in the LICENSE file. |   3 # found in the LICENSE file. | 
|   4  |   4  | 
|   5 CC ?= gcc |   5 CC ?= gcc | 
|   6 CFLAGS = -Wall |   6 CFLAGS = -Wall -DNDEBUG | 
|   7 INCLUDES ?= -I../include/ |   7 INCLUDES ?= -I../include/ | 
|   8 TOP ?= ../ |   8 TOP ?= ../ | 
|   9  |   9  | 
|  10 LIBS = $(TOP)/utils/firmware_image.o $(TOP)/crypto/libcrypto.a $(TOP)/common/lib
    common.a  \ |  10 LIBS = $(TOP)/utils/firmware_image.o $(TOP)/crypto/libcrypto.a $(TOP)/common/lib
    common.a  \ | 
|  11         $(TOP)/utils/file_keys.o -lrt |  11         $(TOP)/utils/file_keys.o -lrt | 
|  12  |  12  | 
|  13 tests: firmware_image_tests sha_tests sha_benchmark |  13 tests: firmware_image_tests sha_tests sha_benchmark | 
|  14  |  14  | 
|  15 sha_tests: sha_tests.c |  15 sha_tests: sha_tests.c | 
|  16         $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) |  16         $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) | 
|  17  |  17  | 
|  18 firmware_image_tests: firmware_image_tests.c |  18 firmware_image_tests: firmware_image_tests.c | 
|  19         $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) |  19         $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) | 
|  20  |  20  | 
|  21 sha_benchmark:  sha_benchmark.c timer_utils.c |  21 sha_benchmark:  sha_benchmark.c timer_utils.c | 
|  22 »       $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $^ -o $@ $(LIBS) |  22 »       $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) | 
|  23  |  23  | 
|  24 clean: |  24 clean: | 
|  25         rm -f sha_tests sha_benchmark firmware_image_tests |  25         rm -f sha_tests sha_benchmark firmware_image_tests | 
| OLD | NEW |