view Makefile @ 704:b6b8e7249666

Check that the buffer length is >= 1 before trying to access buf[len - 1]
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 26 Apr 2020 23:34:21 +0300
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