wayvnc/Makefile

44 lines
881 B
Makefile
Raw Normal View History

2019-10-07 23:07:12 +00:00
DEPENDENCIES := libuv egl glesv2 wayland-client neatvnc pixman-1
2019-10-06 15:00:14 +00:00
EXEC := wayvnc
SOURCES := \
src/main.c \
src/render.c \
2019-10-06 22:50:11 +00:00
src/dmabuf.c \
2019-10-06 18:51:39 +00:00
src/strlcpy.c \
src/shm.c \
src/screencopy.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 \
$(BUILD_DIR)/proto-wlr-screencopy-unstable-v1.o \
2019-10-06 15:27:56 +00:00
2019-10-06 15:00:14 +00:00
VERSION=0.0.0
ifndef DONT_STRIP
INSTALL_STRIP := -s --strip-program=$(STRIP)
endif
2019-10-08 18:36:59 +00:00
all: $(BUILD_DIR)/$(EXEC) | proto
2019-10-06 15:27:56 +00:00
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
2019-10-08 18:36:59 +00:00
.PHONY: proto
proto:
make -C protocols
2019-10-06 15:27:56 +00:00
.PHONY: proto_clean
proto_clean:
make -C protocols clean
2019-10-08 18:36:59 +00:00
clean: proto_clean