sowm/Makefile
zsugabubus 0964d47d07
sowm: fix Makefile dependencies
So the binary no longer need to be deleted for a recompilation.
2020-06-16 10:30:13 +02:00

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