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.
      
 
    
        
        
        
        
        
          lgromero-new-oglive
        
      
        
          | 
                Last change
                  on this file was
                  ab71ca8,
                  checked in by OpenGnSys Support Team <soporte-og@…>, 6 years ago
           | 
        
        
          | 
               
#967 rename .cpp to .c 
 
This actually is C code, use the gcc compiler instead. 
 
           | 
        
        
          
            
              - 
                  Property mode set to
                  
100644
               
             
           | 
        
        | 
            File size:
            754 bytes
           | 
      
      
        
  | 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 += -g -Wall -I../../Includes | 
|---|
| 12 |  | 
|---|
| 13 | # Opciones de linkado | 
|---|
| 14 | LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lev -ljansson -ldbi | 
|---|
| 15 |  | 
|---|
| 16 | # Ficheros objetos | 
|---|
| 17 | OBJS := sources/ogAdmServer.o sources/dbi.o | 
|---|
| 18 |  | 
|---|
| 19 |  | 
|---|
| 20 | all: $(PROYECTO) | 
|---|
| 21 |  | 
|---|
| 22 | $(PROYECTO): $(OBJS) | 
|---|
| 23 |         gcc $(LDFLAGS) $(CFLAGS) $(OBJS) -o $(PROYECTO) | 
|---|
| 24 |  | 
|---|
| 25 | install: $(PROYECTO) | 
|---|
| 26 |         cp $(PROYECTO) $(INSTALL_DIR)/sbin | 
|---|
| 27 |         cp $(PROYECTO).cfg $(INSTALL_DIR)/etc | 
|---|
| 28 |   | 
|---|
| 29 | clean: | 
|---|
| 30 |         rm -f $(PROYECTO) $(OBJS) | 
|---|
| 31 |  | 
|---|
| 32 | uninstall: clean | 
|---|
| 33 |         rm -f /usr/local/sbin/$(PROYECTO) /usr/local/etc/$(PROYECTO).cfg | 
|---|
| 34 |  | 
|---|
| 35 | sources/%.o: sources/%.c | 
|---|
| 36 |         gcc $(CFLAGS) -c -o"$@" "$<" | 
|---|
| 37 |  | 
|---|
| 38 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.
 
     
    
      Download in other formats: