This repository has been archived on 2023-08-29. You can view files and clone it, but cannot push or open issues/pull-requests.
1
0
Fork 0
fxxk_mouse_paste/Makefile

43 lines
719 B
Makefile

TARGET = xmousepasteblock
INSTALL = install
PREFIX = /usr
BINDIR = $(PREFIX)/bin
CC = gcc
CFLAGS += -std=gnu99
CFLAGS += -Wall -Wundef -Wshadow -Wformat-security
LD = $(CC)
LDFLAGS += $(shell pkg-config --libs x11 xi)
LDFLAGS += -lev
.NOTPARALLEL:
.PHONY: all
all: clean $(TARGET)
.PHONY: debug
debug: clean
debug: CFLAGS += -g -DDEBUG
debug: $(TARGET)
.PHONY: $(TARGET)
$(TARGET): $(TARGET).o
$(LD) "$<" $(LDFLAGS) -o "$(TARGET)"
$(TARGET).o: $(TARGET).c
$(CC) $(CFLAGS) -o "$@" -c "$<"
.PHONY: install
install: $(TARGET)
$(INSTALL) -Dm 0755 "$(TARGET)" "$(DESTDIR)$(BINDIR)/$(TARGET)"
.PHONY: uninstall
uninstall:
$(RM) "$(DESTDIR)$(BINDIR)/$(TARGET)"
.PHONY: clean
clean:
$(RM) $(TARGET) $(TARGET).o
禁止鼠标中键粘贴。 不是我写的, 只是怕以后不知道去哪找, 所以上传这里备份一下。
C 82.8%
Makefile 17.2%