diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-12-10 19:21:47 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-02 12:32:36 +0200 |
commit | 6a0fcf96700a7b640114ea40cb64e3c3a5213a68 (patch) | |
tree | 6cfe0908f29096164721cd3066701a7992b467dc /Makefile | |
parent | 54d172e972067e4ddcfd11c613929af811754f99 (diff) |
#970 autotools support for ogAdmServer
To build and to install ogAdmServer:
autoreconf -fi
./configure
make
make install
Default prefix is /opt/opengnsys/ as usual.
ogAdmServer uses autotools for compilation, so this patch adapts OpenGnsys
updater and installer to use autotools for compilation.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 0c3360e..0000000 --- a/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -# makefile - -# Nombre del proyecto -PROYECTO := ogAdmServer - -# Directorio de instalaciĆ³n -INSTALL_DIR := /opt/opengnsys - -# Opciones de compilacion -CFLAGS := $(shell mysql_config --cflags) -CFLAGS += -g -Wall -I../../Includes - -# Opciones de linkado -LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lev -ljansson -ldbi - -# Ficheros objetos -OBJS := sources/ogAdmServer.o sources/dbi.o - - -all: $(PROYECTO) - -$(PROYECTO): $(OBJS) - gcc $(LDFLAGS) $(CFLAGS) $(OBJS) -o $(PROYECTO) - -install: $(PROYECTO) - cp $(PROYECTO) $(INSTALL_DIR)/sbin - cp $(PROYECTO).cfg $(INSTALL_DIR)/etc - -clean: - rm -f $(PROYECTO) $(OBJS) - -uninstall: clean - rm -f /usr/local/sbin/$(PROYECTO) /usr/local/etc/$(PROYECTO).cfg - -sources/%.o: sources/%.c - gcc $(CFLAGS) -c -o"$@" "$<" - - |