close
          Warning:
          Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
      
 
    
        
        
        
        
        
          918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
        
      
      
        
  | Line |   | 
|---|
| 1 | # makefile | 
|---|
| 2 |  | 
|---|
| 3 | # Nombre del proyecto | 
|---|
| 4 | PROYECTO := ogAdmServer | 
|---|
| 5 |  | 
|---|
| 6 | # Directorio de instalación | 
|---|
| 7 | INSTALL_DIR := /opt/opengnsys | 
|---|
| 8 |  | 
|---|
| 9 | # Opciones de compilacion | 
|---|
| 10 | CFLAGS := $(shell mysql_config --cflags) | 
|---|
| 11 | CFLAGS += -O0 -g -Wall -I../../Includes # Depuracion | 
|---|
| 12 | #CFLAGS += -O3 -Wall -I../../Includes   # Optimizacion | 
|---|
| 13 | CPPFLAGS := $(CFLAGS) | 
|---|
| 14 |  | 
|---|
| 15 | # Opciones de linkado | 
|---|
| 16 | LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lpthread | 
|---|
| 17 |  | 
|---|
| 18 | # Ficheros objetos | 
|---|
| 19 | OBJS := ../../Includes/Database.o sources/ogAdmServer.o  | 
|---|
| 20 |  | 
|---|
| 21 |  | 
|---|
| 22 | all: $(PROYECTO) | 
|---|
| 23 |  | 
|---|
| 24 | $(PROYECTO): $(OBJS) | 
|---|
| 25 |         g++ $(LDFLAGS) $(OBJS) -o $(PROYECTO) | 
|---|
| 26 | #       strip $(PROYECTO)               # Optimizacion | 
|---|
| 27 |  | 
|---|
| 28 | install: $(PROYECTO) | 
|---|
| 29 |         cp $(PROYECTO) $(INSTALL_DIR)/sbin | 
|---|
| 30 |         cp $(PROYECTO).cfg $(INSTALL_DIR)/etc | 
|---|
| 31 |   | 
|---|
| 32 | clean: | 
|---|
| 33 |         rm -f $(PROYECTO) $(OBJS) | 
|---|
| 34 |  | 
|---|
| 35 | uninstall: clean | 
|---|
| 36 |         rm -f /usr/local/sbin/$(PROYECTO) /usr/local/etc/$(PROYECTO).cfg | 
|---|
| 37 |  | 
|---|
| 38 | sources/%.o: sources/%.cpp | 
|---|
| 39 |         g++ $(CPPFLAGS) -c -o"$@" "$<" | 
|---|
| 40 |          | 
|---|
| 41 | sources/%.o: sources/%.c | 
|---|
| 42 |         gcc $(CFLAGS) -c -o"$@" "$<" | 
|---|
| 43 |  | 
|---|
| 44 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.