Fix build
parent
c02a6512ea
commit
bab67f1610
9
Makefile
9
Makefile
|
@ -19,8 +19,7 @@ ifndef DONT_STRIP
|
||||||
INSTALL_STRIP := -s --strip-program=$(STRIP)
|
INSTALL_STRIP := -s --strip-program=$(STRIP)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
protocols/build/%.c:
|
all: $(BUILD_DIR)/$(EXEC) | proto
|
||||||
make -C protocols
|
|
||||||
|
|
||||||
$(BUILD_DIR)/%.o: src/%.c | $(BUILD_DIR) ; $(CC_OBJ)
|
$(BUILD_DIR)/%.o: src/%.c | $(BUILD_DIR) ; $(CC_OBJ)
|
||||||
$(BUILD_DIR)/proto-%.o: protocols/build/%.c | $(BUILD_DIR) ; $(CC_OBJ)
|
$(BUILD_DIR)/proto-%.o: protocols/build/%.c | $(BUILD_DIR) ; $(CC_OBJ)
|
||||||
|
@ -30,8 +29,12 @@ $(BUILD_DIR)/$(EXEC): $(OBJECTS) $(PROTOCOLS) | $(BUILD_DIR) ; $(LINK_EXE)
|
||||||
install: $(EXEC)
|
install: $(EXEC)
|
||||||
install $(INSTALL_STRIP) -Dt $(DESTDIR)$(PREFIX)/bin $(BUILD_DIR)/$(EXEC)
|
install $(INSTALL_STRIP) -Dt $(DESTDIR)$(PREFIX)/bin $(BUILD_DIR)/$(EXEC)
|
||||||
|
|
||||||
|
.PHONY: proto
|
||||||
|
proto:
|
||||||
|
make -C protocols
|
||||||
|
|
||||||
.PHONY: proto_clean
|
.PHONY: proto_clean
|
||||||
proto_clean:
|
proto_clean:
|
||||||
make -C protocols clean
|
make -C protocols clean
|
||||||
|
|
||||||
clean: #proto_clean
|
clean: proto_clean
|
||||||
|
|
Loading…
Reference in New Issue