[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
$(BIN)/xlib-shim.so:
$(BIN):
@mkdir -p $@
$(BIN)/xlib-shim.so: $(BIN)
$(CC) -fPIC $(CFLAGS) -shared -o $@ xlib-shim.c
$(BUILD)/%.o: %.c
@mkdir -p $(dir $@)
$(CC) -c $(CFLAGS) -o $@ $<
$(BIN)/$(BINARY): $(BUILD_OBJS)
@mkdir -p $(dir $@)
$(BIN)/$(BINARY): $(BIN) $(BUILD_OBJS)
$(CC) -o $@ $(BUILD_OBJS) $(LDFLAGS)
clean: