Refactored tests; make just builds library, make test builds/runs tests

This commit is contained in:
Meredith L. Patterson 2012-11-13 22:29:25 -05:00
parent 236ec733a1
commit de8db18db4
12 changed files with 613 additions and 615 deletions

View file

@ -5,17 +5,12 @@ endif
include $(TOPLEVEL)/config.mk
TEST_CFLAGS := $(shell pkg-config --cflags glib-2.0) -DINCLUDE_TESTS
TEST_LDFLAGS := $(shell pkg-config --libs glib-2.0)
TEST_CFLAGS = $(shell pkg-config --cflags glib-2.0) -DINCLUDE_TESTS
TEST_LDFLAGS = $(shell pkg-config --libs glib-2.0)
CFLAGS := -std=gnu99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attributes
LDFLAGS :=
ifneq ($(INCLUDE_TESTS),0)
CFLAGS += $(TEST_CFLAGS)
LDFLAGS += $(TEST_LDFLAGS)
endif
CC ?= gcc
$(info CC=$(CC))
# Set V=1 for verbose mode...