diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-04-27 16:13:57 +0100 |
---|---|---|
committer | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-04-28 20:57:03 +0100 |
commit | 44debd80c4908e439d4a505ad7f6de367635b0eb (patch) | |
tree | e8beee4c04ff7775b7180a7675acbe95d5af64f1 | |
parent | 70aab459aa2df8f13b828a06976969ba83612f36 (diff) | |
download | libgit2-44debd80c4908e439d4a505ad7f6de367635b0eb.tar.gz |
Makefile: Add source for the built-in SHA1 routines to $(SRC_C)
This results in the 'sparse' and 'coverage' targets including the
C source files for the built-in SHA1 routines. In addition to the
sparse check, this results in the generation of the '.gcov' file
and inclusion in the test coverage report.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
-rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -56,7 +56,7 @@ endif SRC_C = $(wildcard src/*.c) OS_SRC = $(wildcard src/$(OS)/*.c) -SRC_C += $(OS_SRC) +SRC_C += $(OS_SRC) $(EXTRA_SRC) OBJS = $(patsubst %.c,%.o,$(SRC_C)) $(EXTRA_OBJ) HDRS = $(wildcard src/*.h) PUBLIC_HEADERS = $(wildcard src/git/*.h) @@ -71,12 +71,11 @@ TEST_RUN = $(patsubst %.exe,%.run,$(TEST_EXE)) TEST_VAL = $(patsubst %.exe,%.val,$(TEST_EXE)) ifdef PPC_SHA1 - EXTRA_SRC += src/ppc/sha1.c src/ppc/sha1ppc.S - EXTRA_OBJ += src/ppc/sha1.o src/ppc/sha1ppc.o + EXTRA_SRC += src/ppc/sha1.c + EXTRA_OBJ += src/ppc/sha1ppc.o EXTRA_CFLAGS += -DPPC_SHA1 else EXTRA_SRC += src/block-sha1/sha1.c - EXTRA_OBJ += src/block-sha1/sha1.o endif BASIC_CFLAGS := -Isrc |