1 # wmpus - cross platofrm window manager
2 # See LICENSE file for copyright and license details.
11 MANPREFIX ?= ${PREFIX}/share/man
17 sys-gwl.o: CFLAGS += $(shell pkg-config --cflags gtk+-3.0) -I.
18 wmpus: LDFLAGS += $(shell pkg-config --libs gtk+-3.0)
24 LDFLAGS += -lX11 -lXinerama
28 GCC ?= i486-mingw32-gcc
39 tar -czf wmpus-$(VERSION).tar.gz --transform s::wmpus-$(VERSION)/: \
40 README LICENSE config.mk.example makefile *.1 *.c *.h
43 sed -i 's:/usr.*:$(PREFIX)/bin/wmpus:' wmpus.session
44 install -m 755 -D $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG)
45 install -m 644 -D wmpus.1 $(DESTDIR)$(MANPREFIX)/man1/wmpus.1
46 install -m 755 -D wmpus.session $(DESTDIR)/etc/X11/Sessions/wmpus
47 install -m 644 -D wmpus.desktop $(DESTDIR)$(PREFIX)/share/xsessions/wmpus.desktop
50 rm -f $(DESTDIR)$(PREFIX)/bin/$(PROG)
51 rm -f $(DESTDIR)$(MANPREFIX)/man1/wmpus.1
53 $(PROG): main.o conf.o util.o sys-$(SYS).o wm-$(WM).o
54 $(GCC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
56 %.o: %.c $(wildcard *.h) makefile
57 $(GCC) $(CFLAGS) --std=gnu99 -c -o $@ $<
59 .PHONY: all clean dist install uninstall