summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-11-26 18:59:32 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-03-05 23:45:48 +0100
commitad2d308436190aeb70cc04a313c228fe9e8f778a (patch)
tree15b6a99ea1d4d51b1e5a21b9c0e5b6d9a9059055
parent3b5ec70eaeb1e1fb598e5354e97f59b1513623b3 (diff)
#967 rename .cpp to .c
This actually is C code, use the gcc compiler instead.
-rw-r--r--Makefile6
-rw-r--r--sources/dbi.c (renamed from sources/dbi.cpp)0
-rw-r--r--sources/ogAdmServer.c (renamed from sources/ogAdmServer.cpp)0
3 files changed, 1 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index eafecb3..0c3360e 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,6 @@ INSTALL_DIR := /opt/opengnsys
# Opciones de compilacion
CFLAGS := $(shell mysql_config --cflags)
CFLAGS += -g -Wall -I../../Includes
-CPPFLAGS := $(CFLAGS)
# Opciones de linkado
LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lev -ljansson -ldbi
@@ -21,7 +20,7 @@ OBJS := sources/ogAdmServer.o sources/dbi.o
all: $(PROYECTO)
$(PROYECTO): $(OBJS)
- g++ $(LDFLAGS) $(OBJS) -o $(PROYECTO)
+ gcc $(LDFLAGS) $(CFLAGS) $(OBJS) -o $(PROYECTO)
install: $(PROYECTO)
cp $(PROYECTO) $(INSTALL_DIR)/sbin
@@ -33,9 +32,6 @@ clean:
uninstall: clean
rm -f /usr/local/sbin/$(PROYECTO) /usr/local/etc/$(PROYECTO).cfg
-sources/%.o: sources/%.cpp
- g++ $(CPPFLAGS) -c -o"$@" "$<"
-
sources/%.o: sources/%.c
gcc $(CFLAGS) -c -o"$@" "$<"
diff --git a/sources/dbi.cpp b/sources/dbi.c
index cc5c5b5..cc5c5b5 100644
--- a/sources/dbi.cpp
+++ b/sources/dbi.c
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.c
index 562a39d..562a39d 100644
--- a/sources/ogAdmServer.cpp
+++ b/sources/ogAdmServer.c