minor variable management usage
authorken <ken@mihrtec.com>
Sat, 17 Dec 2016 00:29:27 +0000 (16:29 -0800)
committerken <ken@mihrtec.com>
Sat, 17 Dec 2016 00:29:27 +0000 (16:29 -0800)
Makefile

index 079c4cc..2d928e6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ LDFLAGS   ?=
 LDLIBS    ?= -lunistring
 apcLIBS   ?= 
 apc-dLIBS ?= 
 LDLIBS    ?= -lunistring
 apcLIBS   ?= 
 apc-dLIBS ?= 
-LDCMD      = $(strip gcc $(LDFLAGS) $(if $2,-o $2) $1) $(LDLIBS) $($1LIBS) 
+LDCMD      = $(strip $(CC) $(LDFLAGS) $(if $2,-o $2) $1) $(LDLIBS) $($1LIBS) 
 
 # APC is built from Ragel, Bison and C source code only.
 ySRC  := $(shell find ./src -type f -name '*.y')
 
 # APC is built from Ragel, Bison and C source code only.
 ySRC  := $(shell find ./src -type f -name '*.y')
@@ -63,7 +63,7 @@ endif
 # Rules
 .SECONDEXPANSION:
 $(DRIVERS:%=%-d) $(DRIVERS): $$($$@SRC) | $(hGEN)
 # Rules
 .SECONDEXPANSION:
 $(DRIVERS:%=%-d) $(DRIVERS): $$($$@SRC) | $(hGEN)
-       $(strip $(call LDCMD,$^,$@))
+       $(call LDCMD,$^,$@)
 
 %-d.o: CFLAGS+= -Og -ggdb
 %.o %-d.o: %.c $$(call cGENDEP,$$(dir $$@)%.c)
 
 %-d.o: CFLAGS+= -Og -ggdb
 %.o %-d.o: %.c $$(call cGENDEP,$$(dir $$@)%.c)