sowm

An itsy bitsy floating window manager (220~ sloc!).
git clone git://mfeller.io/sowm.git
Log | Files | Refs | README | LICENSE

Makefile (572B)


      1 CFLAGS    += -std=c99 -Wall -Wextra -pedantic -Wold-style-declaration
      2 CFLAGS    += -Wmissing-prototypes -Wno-unused-parameter
      3 PREFIX    ?= /usr/local
      4 MANPREFIX ?= ${PREFIX}/share/man
      5 BINDIR    ?= $(PREFIX)/bin
      6 CC        ?= gcc
      7 
      8 all: config.h sowm
      9 
     10 config.h:
     11 	cp config.def.h config.h
     12 
     13 sowm:
     14 	$(CC) -O3 $(CFLAGS) -o sowm sowm.c -lX11 $(LDFLAGS)
     15 
     16 install: all
     17 	install -Dm755 sowm $(DESTDIR)$(BINDIR)/sowm
     18 	install -Dm644 sowm $(DESTDIR)$(MANPREFIX)/man1/sowm.1
     19 
     20 uninstall:
     21 	rm -f $(DESTDIR)$(BINDIR)/sowm \
     22 	      $(DESTDIR)$(MANPREFIX)/man1/sowm.1
     23 
     24 clean:
     25 	rm -f sowm *.o