rwx

Run a programm while X is running

git clone https://git.8pit.net/rwx.git

 1X11INC ?= /usr/include/X11
 2X11LIB ?= /usr/lib/X11
 3
 4PREFIX ?= /usr/local
 5BINDIR ?= $(PREFIX)/bin
 6MANDIR ?= $(PREFIX)/share/man
 7
 8CFLAGS ?= -O0 -ggdb -pedantic -Wall -Wextra
 9CFLAGS += -D_BSD_SOURCE -std=c99 -I$(X11INC)
10
11CC      ?= cc
12LDFLAGS += -L$(X11LIB) -lX11
13
14.c.o:
15	$(CC) $(CFLAGS) -c $<
16
17rwx: rwx.o
18	$(CC) -o rwx $< $(LDFLAGS)
19
20install: rwx rwx.1
21	install -Dm755 rwx "$(DESTDIR)$(BINDIR)/rwx"
22	install -Dm644 rwx.1 "$(DESTDIR)$(MANDIR)/man1/rwx.1"