view Makefile.common @ 409:5a27c0fbbf20 default tip

Added tag rel-1_0_1 for changeset f18129e65b6f
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 20 Dec 2023 08:08:38 +0200
parents 964ae4f29138
children
line wrap: on
line source

CFLAGS += -W -Wall -Wextra -std=c99 -pedantic -I./ -D_XOPEN_SOURCE=500
CFLAGS += -g
CFLAGS += -DTH_USE_OPT_ARG=1
THLIBS = th-libs/

ifneq ($(ASAN),)
CFLAGS += -fsanitize=address
LDFLAGS += -lasan
else
CFLAGS += -O2
endif


###
### Objects and targets
###
THLIBS_OBJ=th_util.o th_string.o th_file.o th_args.o \
	th_crypto.o th_datastruct.o th_ioctx.o \
	th_ioctx_stdio.o

SIDINFO_OBJ=sidlib.o sidutil.o sidinfo.o
SIDINFO_BIN=$(BINPATH)sidinfo$(BINEXT)

TARGETS += $(SIDINFO_BIN)


###
### Rules
###
include $(THLIBS)/Makefile.inc


$(SIDINFO_BIN): $(addprefix $(OBJPATH),$(SIDINFO_OBJ)) $(THLIBS_A) $(EXTRAOBJS)
	$(call LINK_C_BIN,)