mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-08-01 04:31:59 -07:00
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.
27 lines
457 B
Makefile
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
|