view Makefile @ 719:d51c277bea6b

Set th_ioctx::memAlloc to zero in th_mem_fclose() if memory is freed. This fixes the issue if file is reopened and th_mem_realloc() fails to notice that we have no allocated memory.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 11 Nov 2020 13:35:03 +0200
parents ee165ef28b6f
children 31bc1ed07cf5
line wrap: on
line source

###
### Configuration settings for Linux and generic UNIX
###

# Miscellaneous
BINTOOL_PREFIX ?=
PREFIX ?= /usr/local
BINPATH ?= ./
OBJPATH ?= obj/unix/
BINEXT ?=

# Compiler flags and linker flags
CFLAGS += -DHAVE_CONFIG_H
LDFLAGS +=

CFLAGS += -DHAVE_STRING_H
CFLAGS += -DHAVE_INTTYPES_H
#CFLAGS += -DHAVE_SYS_TYPES_H


###
### Unix targets
###
ENDIANCHK_BIN = $(BINPATH)endianchk$(BINEXT)
NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
THLIBS_DEP += config.h

include Makefile.gen