summaryrefslogtreecommitdiffstats
path: root/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
commit2bab3a7fefa52133c296760dfb6f1261b8826339 (patch)
tree6bb6db1cf0e288404d184777213133e5cb45dbd4 /Makefile
parent90394722669ae529fc56f0cac25d98f6fc9f8749 (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 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ace1d12..36da5ec 100644
--- a/Makefile
+++ b/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/ogAdmServer.o