mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 01:20:23 -07:00
25 lines
472 B
Makefile
25 lines
472 B
Makefile
CFLAGS += -std=c99 -Wall -Wextra -pedantic -Wold-style-declaration
|
|
CFLAGS += -Wmissing-prototypes -Wno-unused-parameter
|
|
PREFIX ?= /usr
|
|
BINDIR ?= $(PREFIX)/bin
|
|
CC ?= gcc
|
|
|
|
all: sowm
|
|
|
|
config.h:
|
|
cp config.def.h config.h
|
|
|
|
sowm: sowm.c sowm.h config.h Makefile
|
|
$(CC) -O3 $(CFLAGS) -o $@ $< -lX11 $(LDFLAGS)
|
|
|
|
install: all
|
|
install -Dm755 sowm $(DESTDIR)$(BINDIR)/sowm
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(BINDIR)/sowm
|
|
|
|
clean:
|
|
rm -f sowm *.o
|
|
|
|
.PHONY: all install uninstall clean
|