mirror of https://git.48k.eu/ogserver
				
				
				
			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-378ad31fedc9master
							parent
							
								
									2bab3a7fef
								
							
						
					
					
						commit
						ca73ddf489
					
				
							
								
								
									
										12
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										12
									
								
								Makefile
								
								
								
								
							|  | @ -7,17 +7,13 @@ PROYECTO := ogAdmServer | ||||||
| INSTALL_DIR := /opt/opengnsys | INSTALL_DIR := /opt/opengnsys | ||||||
| 
 | 
 | ||||||
| # Opciones de compilacion
 | # Opciones de compilacion
 | ||||||
| CFLAGS := -O0 -g -Wall -I../../Includes	# Depuracion | CFLAGS := $(shell mysql_config --cflags) | ||||||
| #CFLAGS := -O3 -Wall			# Optimizacion
 | CFLAGS += -O0 -g -Wall -I../../Includes	# Depuracion | ||||||
|  | #CFLAGS += -O3 -Wall -I../../Includes	# Optimizacion
 | ||||||
| CPPFLAGS := $(CFLAGS) | CPPFLAGS := $(CFLAGS) | ||||||
| 
 | 
 | ||||||
| # Opciones de linkado
 | # Opciones de linkado
 | ||||||
| LBIT := $(shell getconf LONG_BIT) | LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lpthread | ||||||
| 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
 | # Ficheros objetos
 | ||||||
| OBJS := ../../Includes/Database.o sources/ogAdmServer.o  | OBJS := ../../Includes/Database.o sources/ogAdmServer.o  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue