From: ken Date: Sat, 17 Dec 2016 00:29:27 +0000 (-0800) Subject: minor variable management usage X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fapc.git;a=commitdiff_plain;h=4f7c2d6cab8b748752ec50cc2836208a639a17da minor variable management usage --- diff --git a/Makefile b/Makefile index 079c4cc..2d928e6 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ LDFLAGS ?= 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') @@ -63,7 +63,7 @@ endif # 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)