Mercurial > hg > th-libs
view Makefile.gen @ 567:b75f42ca08ef
Massage th_vprintf_do() a bit, and factor out the format specifier handling
into a separate function and use through a callback. This breaks the
th_vprintf_do() API, unfortunately, but should make for further flexibility
in future.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 08 Jan 2020 02:17:37 +0200 |
parents | a1dac9eb3f06 |
children | 98812eb78d8e |
line wrap: on
line source
CFLAGS += -W -Wall -Wextra -D_XOPEN_SOURCE=500 -I./ CFLAGS += -std=c99 -pedantic CFLAGS += -g CFLAGS += -O2 CFLAGS += -DTH_USE_INTERNAL_SPRINTF=1 CFLAGS += -DTH_PRINTF_DEBUG=1 THLIBS = ./ # # Objects # THLIBS_A=$(OBJPATH)thlibs.a THLIBS_OBJ=th_util.o th_config.o th_string.o th_ioctx.o \ th_args.o th_crypto.o th_datastruct.o th_network.o \ th_file.o TESTS_OBJ=tests.o TESTS_BIN=$(BINPATH)tests$(BINEXT) TARGETS += $(TESTS_BIN) include $(THLIBS)/Makefile.inc $(TESTS_BIN): $(addprefix $(OBJPATH),$(TESTS_OBJ)) $(THLIBS_A) $(LINK_BIN) check: $(TESTS_BIN) $(TESTS_BIN) -v