This commit is contained in:
DarthMooMancer
2025-09-10 14:25:34 -04:00
parent 109eb6c13d
commit 626ea0517c
8 changed files with 11 additions and 72 deletions
+7 -6
View File
@@ -1,17 +1,18 @@
# dmenu - dynamic menu
# See LICENSE file for copyright and license details.
PREFIX = /usr/local
include config.mk
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L
CFLAGS = -std=c99 -pedantic -Wall -Os -I/usr/X11R6/include -I/usr/include/freetype2 $(CPPFLAGS)
LDFLAGS = -L/usr/X11R6/lib -lX11 -lfontconfig -lXft
CC = gcc
SRC = drw.c dmenu.c util.c
OBJ = $(SRC:.c=.o)
all: dmenu
.c.o:
$(CC) -c $(CFLAGS) $<
$(OBJ): arg.h config.h config.mk drw.h
$(OBJ): arg.h config.h drw.h
dmenu: dmenu.o drw.o util.o
$(CC) -o $@ dmenu.o drw.o util.o $(LDFLAGS)
-9
View File
@@ -1,9 +0,0 @@
VERSION = 5.4
PREFIX = /usr/local
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\"
CFLAGS = -std=c99 -pedantic -Wall -Os -I/usr/X11R6/include -I/usr/include/freetype2 $(CPPFLAGS)
LDFLAGS = -L/usr/X11R6/lib -lX11 -lfontconfig -lXft
CC = gcc
+1 -4
View File
@@ -686,10 +686,7 @@ main(int argc, char *argv[])
for (i = 1; i < argc; i++)
/* these options take no arguments */
if (!strcmp(argv[i], "-v")) { /* prints version information */
puts("dmenu-"VERSION);
exit(0);
} else if (!strcmp(argv[i], "-b")) /* appears at the bottom of the screen */
if (!strcmp(argv[i], "-b")) /* appears at the bottom of the screen */
topbar = 0;
else if (!strcmp(argv[i], "-f")) /* grabs keyboard before reading stdin */
fast = 1;