source: ogServer-Git/Makefile @ ef6e3d2

Last change on this file since ef6e3d2 was 212280e, checked in by OpenGnSys Support Team <soporte-og@…>, 6 years ago

#580 rework server socket handling

Modern server side using libev library, includes timeouts for clients.

After this patch, your system requires the libev-dev and libev4 packages
to compile ogAdmServer.

  • Property mode set to 100644
File size: 935 bytes
RevLine 
[b9eb98b]1# makefile
2
3# Nombre del proyecto
4PROYECTO := ogAdmServer
5
6# Directorio de instalación
7INSTALL_DIR := /opt/opengnsys
8
9# Opciones de compilacion
[ca73ddf]10CFLAGS := $(shell mysql_config --cflags)
11CFLAGS += -O0 -g -Wall -I../../Includes # Depuracion
[a8d0344]12#CFLAGS += -O3 -I../../Includes         # Optimizacion
[b9eb98b]13CPPFLAGS := $(CFLAGS)
14
15# Opciones de linkado
[212280e]16LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lpthread -lev
[b9eb98b]17
18# Ficheros objetos
19OBJS := ../../Includes/Database.o sources/ogAdmServer.o
20
21
22all: $(PROYECTO)
23
24$(PROYECTO): $(OBJS)
25        g++ $(LDFLAGS) $(OBJS) -o $(PROYECTO)
26#       strip $(PROYECTO)               # Optimizacion
27
28install: $(PROYECTO)
29        cp $(PROYECTO) $(INSTALL_DIR)/sbin
30        cp $(PROYECTO).cfg $(INSTALL_DIR)/etc
31 
32clean:
33        rm -f $(PROYECTO) $(OBJS)
34
35uninstall: clean
36        rm -f /usr/local/sbin/$(PROYECTO) /usr/local/etc/$(PROYECTO).cfg
37
38sources/%.o: sources/%.cpp
39        g++ $(CPPFLAGS) -c -o"$@" "$<"
40       
41sources/%.o: sources/%.c
42        gcc $(CFLAGS) -c -o"$@" "$<"
43
44
Note: See TracBrowser for help on using the repository browser.