view Makefile.gen @ 286:6212051334e7

As we advertise C99 in README, use it instead of -std=c11
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 08 Jan 2020 11:12:57 +0200
parents 04917c170c23
children b3d46806787d
line wrap: on
line source

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


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

SIDINFO_OBJ=sidlib.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)
	$(LINK_BIN)