Mercurial > hg > th-libs
view Makefile.gen @ 587:98812eb78d8e
Add new compile-time optional th_optarg struct field o_arg for specifying the option argument description/name. TH_USE_OPT_ARG must be defined at compile time.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 12 Jan 2020 18:03:47 +0200 |
parents | a1dac9eb3f06 |
children | 3851e00bcd71 |
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 CFLAGS += -DTH_USE_OPT_ARG=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