Files
sowm/Makefile
Dylan Araps 1a4c655b9d meta: Rewrite sowm and swap to XCB.
This was my first real C project and it shows. Learning C is quite
fun and I still have a long way to go. This next rewrite should be
less of a hot-mess than the original Xlib version.

Notable mistakes:

- while (1 && ...)
- for win (spastic pre-processor stuff)
- no proper tracking of client sizes/positions.
- lazy window focus model.
- almost code-golfed code-base.
- circular-doubly-linked-list for clients.

The following changes mark the initial commit for the rewrite.
The window manager works but does not yet do enough for it to be
usable. Clients, keybindings, a configuration file, etc, etc do
not yet exist. Baby steps.
2020-07-11 11:31:30 +03:00

27 lines
457 B
Makefile

.POSIX:
PREFIX = /usr/local
ALL_WARN = -Wall -Wextra -pedantic -Wmissing-prototypes -Wstrict-prototypes
ALL_CFLAGS = $(CFLAGS) $(CPPFLAGS) -std=c99 $(ALL_WARN)
ALL_LDFLAGS = $(LDFLAGS) -lxcb
CC = cc
all: sowm
sowm: sowm.c Makefile
$(CC) -O3 $(ALL_CFLAGS) -o $@ $< $(ALL_LDFLAGS)
install: all
mkdir -p $(DESTDIR)/bin
cp sowm $(DESTDIR)/bin/sowm
uninstall:
rm -f $(DESTDIR)/bin/sowm
clean:
rm -f sowm *.o
.PHONY: all install uninstall clean