view Makefile @ 1777:6992de3b6dbd

Use $(shell ..) instead of backticks.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 28 Oct 2017 17:46:30 +0300
parents eada713379fe
children 9ee269ae165d
line wrap: on
line source

#
# Configuration settings for typical UNIX
#

# Installation prefix
PREFIX  = /usr/local
BINPATH = ./bin/
OBJPATH = ./obj/unix/
EXEEXT  =

CFLAGS += -DHAVE_CONFIG_H
LDFLAGS +=

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

# For Solaris you may need:
#CFLAGS += -DHAVE_UINT_T

HAVE_LIBPNG ?= $(shell pkg-config --atleast-version=1.2 libpng && echo "yes")
LIBPNG_CFLAGS ?= $(shell pkg-config --cflags libpng)
LIBPNG_LDFLAGS ?= $(shell pkg-config --libs libpng)


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

include Makefile.gen