#--------------------------------------------------------------------
#to set the compiled default library
ifeq ($(strip $(DB)),)
-DB=1
+DB=0
endif
#--------------------------------------------------------------------
#Managing testarea
#linking according database
#postgresql
+ifeq ("$(DB)","0")
+POSTGRESQL_LIB=-lpq
+MYSQL_LIB=-lmysqlclient
+endif
ifeq ("$(DB)","1")
POSTGRESQL_LIB=-lpq
endif
#--------------------------------------------------------------------
#to set the compiled default library
ifeq ($(strip $(DB)),)
-DB=1
+DB=0
endif
#--------------------------------------------------------------------
CC = gcc
#define ITSOK 0 //to check errno against no error
//defining database #define
-#define USE_NODB 0 //No data base to be linked
+#define USE_ALLDB 0 //All database type need to be linked
#define USE_POSTGRESQL 1
#define USE_MYSQL 2
#include "unimar.h"
//checking if MYSQL database need to compiled
-#if DATABASE==USE_MYSQL
+#if DATABASE==USE_MYSQL || DATABSE==USE_ALLDB
#define DB_MYSQL
#endif
#include "unipos.h"
//checking if MYSQL database need to compiled
-#if DATABASE==USE_POSTGRESQL
+#if DATABASE==USE_POSTGRESQL || DATABSE==USE_ALLDB
#define DB_POSTGRESQL
#endif