You've already forked ziomekos
A Window Maker dockapp to help with power management. Co-authored-by: Tomek Wojcik <labs@tomekwojcik.pl> Co-committed-by: Tomek Wojcik <labs@tomekwojcik.pl>
22 lines
486 B
Makefile
22 lines
486 B
Makefile
# Co-Authored by: Claude (Sonnet 5.5 Medium)
|
|
|
|
CC ?= cc
|
|
CFLAGS ?= -O2 -Wall -Wextra -Wno-incompatible-pointer-types
|
|
CFLAGS += $(shell pkg-config --cflags x11 dockapp 2>/dev/null)
|
|
LDLIBS = $(shell pkg-config --libs x11 xext xpm dockapp 2>/dev/null)
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
SOURCES = src/wmpwman.c
|
|
|
|
.PHONY: install clean
|
|
|
|
wmpwman: $(SOURCES)
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)
|
|
|
|
install: wmpwman
|
|
install -D -m 755 wmpwman $(DESTDIR)$(PREFIX)/bin/wmpwman
|
|
|
|
clean:
|
|
rm -f wmpwman
|