From 53054b96229bcd6722d07923515539d753cfb034 Mon Sep 17 00:00:00 2001 From: Patrik Gornicz Date: Sat, 2 May 2009 16:59:26 -0400 Subject: [PATCH] added some standard make varibles, such as prefix --- Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7cab422..7058651 100644 --- a/Makefile +++ b/Makefile @@ -93,6 +93,14 @@ BLDDIRS += ${WORKINGDIR} INCDIRS := ${SRCSDIR} inc/ INCFLAGS := $(addprefix -I, ${INCDIRS}) +ifeq (${WIN32},1) + prefix := /usr/mingw32 +else + prefix := /usr +endif +exec_prefix := ${prefix} +includedir := ${prefix}/include +libdir := ${exec_prefix}/lib PRNTFMT := printf "%-5s: %s\n" @@ -117,11 +125,11 @@ INSTALL := install # HACK install install: - ${INSTALL} -d /usr/include/pg/ - ${INSTALL} -t /usr/include/pg/ inc/* - ${INSTALL} -t /usr/lib ${WORKINGDIR}${REALNAME} - ln -sfn ${REALNAME} /usr/lib/${LINKERNAME} - ln -sfn ${REALNAME} /usr/lib/${SONAME} + ${INSTALL} -d ${includedir}/pg + ${INSTALL} -t ${includedir}/pg inc/* + ln -sfn ${REALNAME} ${libdir}/${LINKERNAME} + ln -sfn ${REALNAME} ${libdir}/${SONAME} + ${INSTALL} -t ${libdir} ${WORKINGDIR}${REALNAME} # HACK uninstall uninstall: -- 2.10.2