[client] fix concurrent make, fixes #43

This commit is contained in:
Geoffrey McRae 2018-01-29 17:02:41 +11:00
parent 2af522aea7
commit d765674913

View File

@ -28,15 +28,17 @@ 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):
@mkdir -p $@
$(BIN)/xlib-shim.so: $(BIN)
$(CC) -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 $@)
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
$(BIN)/$(BINARY): $(BUILD_OBJS) $(BIN)/$(BINARY): $(BIN) $(BUILD_OBJS)
@mkdir -p $(dir $@)
$(CC) -o $@ $(BUILD_OBJS) $(LDFLAGS) $(CC) -o $@ $(BUILD_OBJS) $(LDFLAGS)
clean: clean: