[client] makefile: use $(CC) instead of assuming gcc

This commit is contained in:
Geoffrey McRae 2018-01-25 09:58:03 +11:00
parent d591e2fd36
commit 2114b73c11

View File

@ -29,15 +29,15 @@ BUILD_OBJS = $(foreach obj,$(OBJS),$(BUILD)/$(obj))
all: $(BIN)/$(BINARY) $(BIN)/xlib-shim.so all: $(BIN)/$(BINARY) $(BIN)/xlib-shim.so
$(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 $(BUILD)/%.o: %.c
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
gcc -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
$(BIN)/$(BINARY): $(BUILD_OBJS) $(BIN)/$(BINARY): $(BUILD_OBJS)
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
gcc -o $@ $(BUILD_OBJS) $(LDFLAGS) $(CC) -o $@ $(BUILD_OBJS) $(LDFLAGS)
clean: clean:
rm -rf $(BUILD) $(BIN) rm -rf $(BUILD) $(BIN)