Versión 1.0.3, #414: linkado correcto en Ubuntu 11.10; ficheros Makefile independientes de distribución.

git-svn-id: https://opengnsys.es/svn/branches/version1.0@2439 a21b9725-9963-47de-94b9-378ad31fedc9
master
ramon 2012-01-16 13:35:43 +00:00
parent 2bab3a7fef
commit ca73ddf489
1 changed files with 4 additions and 8 deletions

View File

@ -7,17 +7,13 @@ PROYECTO := ogAdmServer
INSTALL_DIR := /opt/opengnsys
# Opciones de compilacion
CFLAGS := -O0 -g -Wall -I../../Includes # Depuracion
#CFLAGS := -O3 -Wall # Optimizacion
CFLAGS := $(shell mysql_config --cflags)
CFLAGS += -O0 -g -Wall -I../../Includes # Depuracion
#CFLAGS += -O3 -Wall -I../../Includes # Optimizacion
CPPFLAGS := $(CFLAGS)
# Opciones de linkado
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
LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lpthread
# Ficheros objetos
OBJS := ../../Includes/Database.o sources/ogAdmServer.o