From 2114b73c11715fe9e2cdf7477d67cd17dc6c6e6e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 25 Jan 2018 09:58:03 +1100 Subject: [PATCH] [client] makefile: use $(CC) instead of assuming gcc --- client/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/Makefile b/client/Makefile index d68d1564..892e0e12 100644 --- a/client/Makefile +++ b/client/Makefile @@ -29,15 +29,15 @@ BUILD_OBJS = $(foreach obj,$(OBJS),$(BUILD)/$(obj)) all: $(BIN)/$(BINARY) $(BIN)/xlib-shim.so $(BIN)/xlib-shim.so: - gcc -fPIC $(CFLAGS) -shared -o $@ xlib-shim.c + $(CC) -fPIC $(CFLAGS) -shared -o $@ xlib-shim.c $(BUILD)/%.o: %.c @mkdir -p $(dir $@) - gcc -c $(CFLAGS) -o $@ $< + $(CC) -c $(CFLAGS) -o $@ $< $(BIN)/$(BINARY): $(BUILD_OBJS) @mkdir -p $(dir $@) - gcc -o $@ $(BUILD_OBJS) $(LDFLAGS) + $(CC) -o $@ $(BUILD_OBJS) $(LDFLAGS) clean: rm -rf $(BUILD) $(BIN)