diff options
-rw-r--r-- | Makefile | 6 | ||||
-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
@@ -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 |