From 4af39dbb084633e4f000d04773642a3c03cf116b Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 7 Feb 2018 22:44:29 -0500 Subject: Add janky X11 graphics frontend --- bin/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bin/Makefile') 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 $@ -- cgit 1.4.1