CFLAGS += -O2 -Wall -Wextra -Wpedantic LDFLAGS += -lX11 TARGET := xkbdlock SRC := $(wildcard *.c) OBJ := $(SRC:.c=.o) all: $(TARGET) $(TARGET): $(OBJ) clean: rm -f $(TARGET) $(OBJ) .PHONY: all clean