mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 17:20:22 +00:00
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>
This commit is contained in:
parent
70aab459aa
commit
44debd80c4
7
Makefile
7
Makefile
@ -56,7 +56,7 @@ endif
|
|||||||
|
|
||||||
SRC_C = $(wildcard src/*.c)
|
SRC_C = $(wildcard src/*.c)
|
||||||
OS_SRC = $(wildcard src/$(OS)/*.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)
|
OBJS = $(patsubst %.c,%.o,$(SRC_C)) $(EXTRA_OBJ)
|
||||||
HDRS = $(wildcard src/*.h)
|
HDRS = $(wildcard src/*.h)
|
||||||
PUBLIC_HEADERS = $(wildcard src/git/*.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))
|
TEST_VAL = $(patsubst %.exe,%.val,$(TEST_EXE))
|
||||||
|
|
||||||
ifdef PPC_SHA1
|
ifdef PPC_SHA1
|
||||||
EXTRA_SRC += src/ppc/sha1.c src/ppc/sha1ppc.S
|
EXTRA_SRC += src/ppc/sha1.c
|
||||||
EXTRA_OBJ += src/ppc/sha1.o src/ppc/sha1ppc.o
|
EXTRA_OBJ += src/ppc/sha1ppc.o
|
||||||
EXTRA_CFLAGS += -DPPC_SHA1
|
EXTRA_CFLAGS += -DPPC_SHA1
|
||||||
else
|
else
|
||||||
EXTRA_SRC += src/block-sha1/sha1.c
|
EXTRA_SRC += src/block-sha1/sha1.c
|
||||||
EXTRA_OBJ += src/block-sha1/sha1.o
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BASIC_CFLAGS := -Isrc
|
BASIC_CFLAGS := -Isrc
|
||||||
|
Loading…
Reference in New Issue
Block a user