summary refs log tree commit diff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-02-07 22:44:29 -0500
committerJune McEnroe <june@causal.agency>2018-02-07 22:44:29 -0500
commit30e11637f2287b955108c49b6237c87b26f6b73e (patch)
treee93a0e176b65ee942d15ac5b500b2fef815c3670 /bin/Makefile
parentInclude stdio.h in gfb.c (diff)
downloadsrc-30e11637f2287b955108c49b6237c87b26f6b73e.tar.gz
src-30e11637f2287b955108c49b6237c87b26f6b73e.zip
Add janky X11 graphics frontend
Diffstat (limited to '')
-rw-r--r--bin/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/Makefile b/bin/Makefile
index a6e734f9..5801ec74 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -2,7 +2,7 @@ ANY_BINS = atch dtch hnel pbcopy pbd pbpaste wake xx
 BSD_BINS = jrp klon typo watch
 MAC_BINS = gfxx-cocoa gfxx
 LIN_BINS = bri fbatt fbclock gfxx-fb gfxx
-ALL_BINS = $(ANY_BINS) $(BSD_BINS) $(MAC_BINS) $(LIN_BINS)
+ALL_BINS = $(ANY_BINS) $(BSD_BINS) $(MAC_BINS) $(LIN_BINS) gfxx-x11
 
 CFLAGS += -Wall -Wextra -Wpedantic
 LDLIBS = -lcurses -ledit -lutil -lz
@@ -24,9 +24,13 @@ gfxx-cocoa: gfxx.o gfcocoa.o
 gfxx-fb: gfxx.o gfb.o
 	$(CC) $(LDFLAGS) gfxx.o gfb.o $(LDLIBS) -o $@
 
+gfxx-x11: gfxx.o gfx11.o
+	$(CC) $(LDFLAGS) gfxx.o gfx11.o $(LDLIBS) -lX11 -o $@
+
 gfxx:
-	[ -f gfxx-cocoa ] && ln -s gfxx-cocoa gfxx || true
-	[ -f gfxx-fb ] && ln -s gfxx-fb gfxx || true
+	[ -f gfxx-fb ] && ln -s -f gfxx-fb gfxx || true
+	[ -f gfxx-x11 ] && ln -s -f gfxx-x11 gfxx || true
+	[ -f gfxx-cocoa ] && ln -s -f gfxx-cocoa gfxx || true
 
 pbcopy pbpaste: pbd
 	ln -f pbd $@