mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47:19 +00:00
[client] fix concurrent make, fixes #43
This commit is contained in:
parent
2af522aea7
commit
d765674913
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user