This commit is contained in:
exkc 2022-07-20 17:34:26 +08:00
parent e5ef069c9b
commit bfa920a922
6 changed files with 4 additions and 10 deletions

View file

@ -42,9 +42,6 @@ install: all
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
@echo installed executable files to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
uninstall:
for i in ${BIN}; do \

View file

@ -1,21 +1,18 @@
# Customize to fit your system
# paths
PREFIX = /usr/local
PREFIX = /usr
CONFPREFIX = ${PREFIX}/etc
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
VERSION = 0.1
# includes and libs
LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
# Linux/BSD
CFLAGS = -Os -I. -pedantic -Wall -Wno-deprecated-declarations -I${PREFIX}/include -I/usr/include -I${X11INC} \
-DVERSION=\"${VERSION}\"
CFLAGS = -Os -I. -pedantic -Wall -Wno-deprecated-declarations -I${PREFIX}/include -I/usr/include -I${X11INC}
LDFLAGS = ${LIBS}
#CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
# -DVERSION=\"${VERSION}\"

BIN
dumbwm

Binary file not shown.

BIN
event.o

Binary file not shown.

4
main.c
View file

@ -36,7 +36,7 @@ Client *sel = NULL;
static Bool other_wm_running;
static const char version[] =
"dumbwm-" VERSION ", (C)opyright MMVI Anselm R. Garbe\n";
"dumbwm-" ", (C)opyright MMVI Anselm R. Garbe\n";
static int (*x_error_handler) (Display *, XErrorEvent *);
static void
@ -190,7 +190,7 @@ main(int argc, char *argv[])
XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
strcpy(stext, "dumbwm-"VERSION);
strcpy(stext, "dumbwm-");
scan_wins();
/* main event loop, reads status text from stdin as well */

BIN
main.o

Binary file not shown.