general cleanups. Removed lots of unused code and redundant error checks
This commit is contained in:
@@ -59,8 +59,8 @@ BUILD_MODE = RELEASE
|
||||
# following set of flags to the CFLAGS and
|
||||
# LFLAGS. If the BUILD_MODE is COVERAGE, then
|
||||
# the flags are also determined based on the CC.
|
||||
CFLAGS_DEBUG = -DDEBUG -g
|
||||
LFLAGS_DEBUG =
|
||||
CFLAGS_DEBUG = -DDEBUG -g
|
||||
LFLAGS_DEBUG =
|
||||
|
||||
CFLAGS_RELEASE = -DNDEBUG -O3
|
||||
LFLAGS_RELEASE =
|
||||
@@ -150,15 +150,6 @@ $(CLI): $(CLI_OFILES) $(LIB)
|
||||
$(TST): $(TST_OFILES) $(LIB)
|
||||
gcc $^ -o $@ $(LFLAGS)
|
||||
|
||||
#$(REPORTDIR)/%.gcov: src/%.c
|
||||
# @ mkdir -p $(@D)
|
||||
# gcov --stdout $(patsubst $(SRCDIR)/%.c, $(OBJDIR)/%.c, $^) > $@
|
||||
#
|
||||
#report: $(patsubst $(SRCDIR)/%.c, $(REPORTDIR)/%.gcov, $(ALL_CFILES))
|
||||
# lcov --capture --directory $(OBJDIR) --output-file coverage.info
|
||||
# genhtml coverage.info --output-directory .
|
||||
#
|
||||
|
||||
report:
|
||||
lcov --capture --directory $(OBJDIR) --output-file $(OBJDIR)/coverage.info
|
||||
@ mkdir -p report
|
||||
@@ -172,4 +163,4 @@ clean:
|
||||
rm -rf $(OBJDIR)
|
||||
rm -rf $(REPORTDIR)
|
||||
rm -f $(LIB)
|
||||
rm -f $(CLI)
|
||||
rm -f $(CLI)
|
||||
|
||||
Reference in New Issue
Block a user