configure-oglivelgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change
on this file since 7b89763 was
ab71ca8,
checked in by OpenGnSys Support Team <soporte-og@…>, 5 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
|
Rev | Line | |
---|
[3ec149c] | 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 |
---|
[020a016] | 10 | CFLAGS := $(shell mysql_config --cflags) |
---|
[bfa70ab1] | 11 | CFLAGS += -g -Wall -I../../Includes |
---|
[3ec149c] | 12 | |
---|
| 13 | # Opciones de linkado |
---|
[5c30724] | 14 | LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lev -ljansson -ldbi |
---|
[3ec149c] | 15 | |
---|
| 16 | # Ficheros objetos |
---|
[7db4aa4] | 17 | OBJS := sources/ogAdmServer.o sources/dbi.o |
---|
[3ec149c] | 18 | |
---|
| 19 | |
---|
| 20 | all: $(PROYECTO) |
---|
| 21 | |
---|
| 22 | $(PROYECTO): $(OBJS) |
---|
[ab71ca8] | 23 | gcc $(LDFLAGS) $(CFLAGS) $(OBJS) -o $(PROYECTO) |
---|
[3ec149c] | 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.