Mercurial > hg > th-libs
changeset 601:3851e00bcd71
Fix building of 'tests'.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Jan 2020 11:37:30 +0200 |
parents | 492633200ddd |
children | aec713767482 081426ee3d93 |
files | Makefile.gen |
diffstat | 1 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.gen Tue Jan 14 03:28:53 2020 +0200 +++ b/Makefile.gen Wed Jan 15 11:37:30 2020 +0200 @@ -1,3 +1,6 @@ +### +### Compiler flags and paths +### CFLAGS += -W -Wall -Wextra -D_XOPEN_SOURCE=500 -I./ CFLAGS += -std=c99 -pedantic CFLAGS += -g @@ -8,9 +11,9 @@ THLIBS = ./ -# -# Objects -# +### +### 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 \ @@ -24,8 +27,12 @@ include $(THLIBS)/Makefile.inc + +### +### Extra targets +### $(TESTS_BIN): $(addprefix $(OBJPATH),$(TESTS_OBJ)) $(THLIBS_A) - $(LINK_BIN) + $(LINK_C_BIN) check: $(TESTS_BIN) $(TESTS_BIN) -v