Makefile: rename GCC -> CC (its standart name for C compiler)

master
KoynovStas 5 years ago
parent ca60dcc5ee
commit 21f887dc7d

@ -37,7 +37,7 @@ CFLAGS += -I$(GENERATED_DIR)
CFLAGS += -I$(GSOAP_DIR) -I$(GSOAP_PLUGIN_DIR) -I$(GSOAP_IMPORT_DIR)
CFLAGS += -O2 -Wall -pipe
GCC ?= gcc
CC ?= gcc
@ -159,7 +159,7 @@ distclean: clean
@echo "Generating dependencies..."
@for src in $(SOURCES) ; do \
echo " [depend] $$src" ; \
$(GCC) $(CFLAGS) -MT ".depend $${src%.*}.o $${src%.*}_$(DEBUG_SUFFIX).o" -MM $$src >> .depend ; \
$(CC) $(CFLAGS) -MT ".depend $${src%.*}.o $${src%.*}_$(DEBUG_SUFFIX).o" -MM $$src >> .depend ; \
done
@ -198,14 +198,14 @@ BUILD_ECHO = echo "\n [build] $@:"
define build_object
@$(BUILD_ECHO)
$(GCC) -c $< -o $@ $(CFLAGS)
$(CC) -c $< -o $@ $(CFLAGS)
endef
define build_bin
@$(BUILD_ECHO)
$(GCC) $1 -o $@ $(CFLAGS)
$(CC) $1 -o $@ $(CFLAGS)
@echo "\n---- Compiled $@ ver $(DAEMON_MAJOR_VERSION).$(DAEMON_MINOR_VERSION).$(DAEMON_PATCH_VERSION) ----\n"
endef

@ -14,7 +14,7 @@ For more details about it see the [gSOAP WS-Discovery plugin official manual.](h
## Build
To start build you have to choose your compiler (or toolchain) in the [Makefile](./Makefile) (see variable `$GCC`).
To start build you have to choose your compiler (or toolchain) in the [Makefile](./Makefile) (see variable `$CC`).
For build daemon in release and debug mode:
```console

Loading…
Cancel
Save