X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fapc.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=2d928e67fe0bbe35f8a4094b353a947fad0dbebb;hp=079c4ccde35e33041c26795e0bf6cea8fc321379;hb=4f7c2d6cab8b748752ec50cc2836208a639a17da;hpb=59c61dc6411254681b81571dd580336a75c0100d 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)