diff
Makefile | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 58e12c2..39a96ab 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,12 @@
CFLAGS = -std=c89 -Wall -Wextra -Werror -pedantic
-LDFLAGS = -lX11
-# uncomment on openbsd
-# CPPFLAGS = -I/usr/X11R6/include
-# LDFLAGS = -L/usr/X11R6/lib
+CPPFLAGS = -I/usr/X11R6/include
+LDFLAGS = -L/usr/X11R6/lib
+LDLIBS = -lX11
all: wm
wm: wm.c
- cc $(CFLAGS) -o wm.c $(LDFLAGS)
-
+ cc $(CPPFLAGS) $(CFLAGS) -o wm wm.c $(LDFLAGS) $(LDLIBS)
run: wm
./wm