# Copyright (c) 2004 Sean Chittenden <sean@chittenden.org>
#
# Licensed under the MIT license (see ./COPYING for details)
#
# $PostgreSQL: pgmemcache/pmkfile,v 1.3 2005/01/26 05:37:34 seanc Exp $

SETTINGS {
	LANG="C"
	TARGET=("Makefile.pmk")
	DETECT = ("CC")
}

SWITCHES {
	debug = FALSE
}

IF(!debug) {
	DEFINE {
		CFLAGS = "-std=c99 -pipe -O3"
	}
}

IF(debug) {
	DEFINE {
		CFLAGS = "-std=c99 -g -Wall -Wunused -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wformat -Wpacked -Wdeprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wdisabled-optimization -pipe -pedantic"
	}
}

CHECK_HEADER(include_close) {
	REQUIRED=TRUE
	FUNCTION="close"
	NAME="unistd.h"
}

CHECK_BINARY(pg_config) {
	REQUIRED = TRUE
	NAME = "pg_config"
	VARIABLE = "BIN_PG_CONFIG"
}

CHECK_BINARY(pmk_config) {
	REQUIRED = TRUE
	NAME = "pmk"
	VARIABLE = "BIN_PMK"
}


BUILD_SHLIB_NAME {
	NAME = "pgmemcache"
	MAJOR = "0"
	MINOR = "0"
	VERSION_NONE = "LIBNAME"
	VERSION_FULL = "LIBNAMEV"
}
