git.strcat.st

/strcat/wm.git/ - summarytreelogarchivereleases

subject
fix makefile
commit
4f357ceaa42d4c015fcf14f6ddf475922f31d548
date
2026-04-20T18:34:04Z
message
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