]> Pileus Git - wmpus/blobdiff - makefile
Add Win32 support for tags and multiple monitors
[wmpus] / makefile
index 617737371aaef7cbb70151741e473f9f32ecb1af..4900ee57be91ce841559a82000438fd35a726469 100644 (file)
--- a/makefile
+++ b/makefile
@@ -4,7 +4,7 @@ SYS=x11
 CC=gcc
 PROG=awm
 CFLAGS=-g -Werror -Wall
-LIBS=-Wl,--as-needed -lX11
+LIBS=-Wl,--as-needed -lX11 -lXinerama
 TEST=DISPLAY=:2.0
 
 WIN32=
@@ -26,7 +26,7 @@ debug: $(PROG)
 $(PROG): main.o util.o sys-$(SYS).o wm-$(WM).o
        $(CC) $(CFLAGS) -o $@ $+ $(LIBS)
 
-%.o: %.c $(wildcard *.h)
+%.o: %.c $(wildcard *.h) makefile
        $(CC) --std=gnu99 $(CFLAGS) -c -o $@ $<
 
 clean: