This repository has been archived on 2021-03-07. You can view files and clone it, but cannot push or open issues or pull requests.
2019-10-12 17:44:49 +00:00
|
|
|
CFLAGS+= -std=c99 -Wall -Wno-deprecated-declarations -pedantic
|
2019-10-11 11:53:52 +00:00
|
|
|
LDADD+= -lX11
|
2019-10-11 11:48:34 +00:00
|
|
|
LDFLAGS=
|
|
|
|
PREFIX?= /usr
|
|
|
|
BINDIR?= $(PREFIX)/bin
|
|
|
|
|
2019-10-15 09:47:16 +00:00
|
|
|
CC ?= gcc
|
2019-10-11 11:48:34 +00:00
|
|
|
|
2019-10-15 14:12:10 +00:00
|
|
|
all: config.h sowm
|
|
|
|
|
|
|
|
config.h:
|
|
|
|
cp config.def.h config.h
|
2019-10-11 11:48:34 +00:00
|
|
|
|
2019-10-11 18:38:58 +00:00
|
|
|
sowm: sowm.o
|
2019-10-11 11:48:34 +00:00
|
|
|
$(CC) $(LDFLAGS) -Os -o $@ $+ $(LDADD)
|
|
|
|
|
|
|
|
install: all
|
2019-10-11 18:38:58 +00:00
|
|
|
install -Dm 755 sowm $(DESTDIR)$(BINDIR)/sowm
|
2019-10-11 11:48:34 +00:00
|
|
|
|
|
|
|
clean:
|
2019-10-11 18:38:58 +00:00
|
|
|
rm -f sowm *.o
|