Mercurial > hg > th-libs
view Makefile.gen @ 650:24cbab6e88c6
Remove th_io_free(), merge the functionality to th_io_close(). Add flags
allocation for certain elements and/of the th_ioctx structure itself.
Add helper function th_io_init_stdio(th_ioctx *ctx, FILE *fh) for
initializing th_ioctx with stdio fops and given file handle.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 25 Jan 2020 13:05:11 +0200 |
parents | d191ded8a790 |
children | 7e207f1023d9 |
line wrap: on
line source
### ### Compiler flags and paths ### 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 CFLAGS += -DTH_USE_OPT_ARG=1 #CFLAGS += -DTH_EXPERIMENTAL_REGEX=1 #CFLAGS += -DTH_EXPERIMENTAL_REGEX_DEBUG=1 THLIBS = ./ ### ### Objects and binaries ### 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 th_regex.o TESTS_OBJ=tests.o TESTS_BIN=$(BINPATH)tests$(BINEXT) TARGETS += $(TESTS_BIN) include $(THLIBS)/Makefile.inc ### ### Extra targets ### $(TESTS_BIN): $(addprefix $(OBJPATH),$(TESTS_OBJ)) $(THLIBS_A) $(LINK_C_BIN) check: $(TESTS_BIN) $(TESTS_BIN) -v