Enable code coverage tracking in pyocf

This commit is contained in:
Kamil Lepek
2020-01-08 11:00:07 +01:00
parent b58ebd4b88
commit 0d6660d4f3
2 changed files with 3 additions and 3 deletions

View File

@@ -23,11 +23,11 @@ all: | sync config_random
$(OCFLIB): $(OBJS)
@echo "Building $@"
@$(CC) -shared -o $@ $(CFLAGS) $^ -fPIC $(LDFLAGS)
@$(CC) -coverage -shared -o $@ $(CFLAGS) $^ -fPIC $(LDFLAGS)
%.o: %.c
@echo "Compiling $@"
@$(CC) -c $(CFLAGS) -o $@ -fPIC $^ $(LDFLAGS)
@$(CC) -coverage -c $(CFLAGS) -o $@ -fPIC $^ $(LDFLAGS)
sync:
@echo "Syncing OCF sources"