wayvnc/Makefile

37 lines
729 B
Makefile
Raw Normal View History

2019-10-06 15:27:56 +00:00
DEPENDENCIES := libuv egl glesv2 wayland-client
2019-10-06 15:00:14 +00:00
EXEC := wayvnc
SOURCES := \
src/main.c \
src/render.c \
2019-10-06 18:51:39 +00:00
src/strlcpy.c \
2019-10-06 15:00:14 +00:00
include common.mk
2019-10-06 15:27:56 +00:00
PROTOCOLS := \
$(BUILD_DIR)/proto-wlr-export-dmabuf-unstable-v1.o \
2019-10-06 15:00:14 +00:00
VERSION=0.0.0
ifndef DONT_STRIP
INSTALL_STRIP := -s --strip-program=$(STRIP)
endif
2019-10-06 15:27:56 +00:00
protocols/build/%.c:
make -C protocols
2019-10-06 15:00:14 +00:00
$(BUILD_DIR)/%.o: src/%.c | $(BUILD_DIR) ; $(CC_OBJ)
2019-10-06 15:27:56 +00:00
$(BUILD_DIR)/proto-%.o: protocols/build/%.c | $(BUILD_DIR) ; $(CC_OBJ)
$(BUILD_DIR)/$(EXEC): $(OBJECTS) $(PROTOCOLS) | $(BUILD_DIR) ; $(LINK_EXE)
2019-10-06 15:00:14 +00:00
.PHONY: install
install: $(EXEC)
install $(INSTALL_STRIP) -Dt $(DESTDIR)$(PREFIX)/bin $(BUILD_DIR)/$(EXEC)
2019-10-06 15:27:56 +00:00
.PHONY: proto_clean
proto_clean:
make -C protocols clean
clean: proto_clean