Index: src/platform/vboot_reference/cgptlib/tests/Makefile |
diff --git a/src/platform/vboot_reference/cgptlib/tests/Makefile b/src/platform/vboot_reference/cgptlib/tests/Makefile |
index 57b7bec3639a82029081fb69c9346225acdc25fa..ecd166c13a560e01cb6c6d9ee7b502b42f42e194 100644 |
--- a/src/platform/vboot_reference/cgptlib/tests/Makefile |
+++ b/src/platform/vboot_reference/cgptlib/tests/Makefile |
@@ -2,15 +2,16 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+TOP ?= ../../ |
CFLAGS += -Wall -DNDEBUG -Werror -ansi |
-LIBS = ../cgpt.a ../../common/libcommon.a |
-OBJS = cgptlib_test.o quick_sort_test.o |
+LIBS = $(TOP)/cgptlib/libcgpt.a $(TOP)/common/libcommon.a |
+OBJS = cgptlib_test.o quick_sort_test.o crc32_test.o |
OUT = cgptlib_test |
all: $(OUT) |
$(OUT): $(OBJS) $(LIBS) |
- $(CC) -o $@ $^ |
+ $(CC) $(CFLAGS) -o $@ $^ |
.c.o: |
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ |