Makefile (502B)
1PREFIX ?= /usr/local 2BINDIR ?= /bin 3 4CFLAGS = -I . -Wunused-function -Wunused-variable -Wconversion 5LDLIBS = -lX11 -lm 6 7ifeq ($(DEBUG),1) 8CFLAGS += -Og -g 9else 10CFLAGS += -O2 11endif 12 13all: wmsl sigwmsl 14 15clean: 16 rm -f wmsl sigwmsl 17 18wmsl: wmsl.c 19 $(CC) -o $@ $< $(CFLAGS) $(LDLIBS) 20 21sigwmsl: sigwmsl.c 22 23install: 24 install -m 755 sigwmsl wmsl -t "$(DESTDIR)$(PREFIX)$(BINDIR)" 25 26uninstall: 27 rm "$(DESTDIR)$(PREFIX)$(BINDIR)/wmsl" 28 rm "$(DESTDIR)$(PREFIX)$(BINDIR)/sigwmsl" 29 30.PHONY: all clean install uninstall