glazier

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c404fae77c629a2f093e4e6930b0ede8a57ba32f
Author: Willy <willyatmailoodotorg>
Date:   Thu Aug 11 21:19:02 +0200

Baby's first commit

Diffstat:
.gitmodules | 3+++
README | 9+++++++++
config.mk | 12++++++++++++
glazier.c | 13+++++++++++++
libwm | 1+
mkfile | 27+++++++++++++++++++++++++++
6 files changed, 65 insertions(+), 0 deletions(-)
diff --git a/.gitmodules b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libwm"] + path = libwm + url = git://z3bra.org/libwm diff --git a/README b/README @@ -0,0 +1,8 @@ +glazier +======= + +> A glazier is a skilled tradesman responsible for cutting, installing, and +> removing glass + -- wikipedia + +In other words, a glazier manipulates windows.+ \ No newline at end of file diff --git a/config.mk b/config.mk @@ -0,0 +1,12 @@ +VERSION = 0.0 + +CC = cc +LD = ${CC} + +PREFIX = /usr/local +MANDIR = ${PREFIX}/man + +CPPFLAGS = -I./libwm -DVERSION=\"${VERSION}\" +CFLAGS = ${CPPFLAGS} -Wall -Wextra -pedantic +LDFLAGS = +LIBS = -lxcb diff --git a/glazier.c b/glazier.c @@ -0,0 +1,12 @@ +#include <xcb/xcb.h> + +#include "wm.h" + +xcb_connection_t *conn; +xcb_screen_t *scrn; + +int +main (int argc, char *argv[]) +{ + return 0; +}+ \ No newline at end of file diff --git a/libwm b/libwm @@ -0,0 +1 @@ +Subproject commit 208dfb86eb0b9740a0a909def3570d5d1eb6457a diff --git a/mkfile b/mkfile @@ -0,0 +1,27 @@ +<config.mk + +LIBWM_SRC = `{find libwm/ -name '*.c'} + +SRC = glazier.c $LIBWM_SRC +OBJ = ${SRC:%.c=%.o} + +glazier: $OBJ + $LD -o $target $prereq $LDFLAGS $LIBS + +%.o: %.c + $CC $CFLAGS -c $stem.c -o $stem.o + +clean:V: + rm -f $OBJ glazier + +install:V: glazier + mkdir -p ${DESTDIR}${PREFIX}/bin + cp glazier ${DESTDIR}${PREFIX}/bin/glazier + chmod 755 ${DESTDIR}${PREFIX}/bin/glazier + mkdir -p ${DESTDIR}${MANDIR}/man1 + cp glazier.1 ${DESTDIR}${MANDIR}/man1/glazier.1 + chmod 644 ${DESTDIR}${MANDIR}/man1/glazier.1 + +uninstall:V: + rm ${DESTDIR}${PREFIX}/bin/glazier + rm ${DESTDIR}${MANDIR}/man1/glazier.1