summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Services/ogAdmAgent/Makefile
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-06-30 10:43:27 +0000
committerramon <ramongomez@us.es>2011-06-30 10:43:27 +0000
commit89ff8ed80011e490059a44297cb14d707c0b661f (patch)
treeab81c23456b7975ee35870ea9a8c793454fa1954 /admin/Sources/Services/ogAdmAgent/Makefile
parent3aada2de2d56a7d4b9cd087b882f0a53d7d8bc6d (diff)
VersiĆ³n 1.0.2: configurados Makefile para compilar servicios tanto para 32 como 64 bits.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2116 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Sources/Services/ogAdmAgent/Makefile')
-rw-r--r--admin/Sources/Services/ogAdmAgent/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/admin/Sources/Services/ogAdmAgent/Makefile b/admin/Sources/Services/ogAdmAgent/Makefile
index ae5d0f68..b9f1ba53 100644
--- a/admin/Sources/Services/ogAdmAgent/Makefile
+++ b/admin/Sources/Services/ogAdmAgent/Makefile
@@ -12,7 +12,12 @@ CFLAGS := -O0 -g -Wall -I../../Includes # Depuracion
CPPFLAGS := $(CFLAGS)
# Opciones de linkado
-LDFLAGS := -L/usr/lib -L/usr/lib/mysql -lpthread -lmysqlclient
+LBIT=$(shell getconf LONG_BIT)
+ifeq ($(LBIT, 64)
+ LDFLAGS := -L/usr/lib64 -L/usr/lib64/mysql -lpthread -lmysqlclient
+else
+ LDFLAGS := -L/usr/lib -L/usr/lib/mysql -lpthread -lmysqlclient
+endif
# Ficheros objetos
OBJS := ../../Includes/Database.o sources/ogAdmAgent.o