This commit is contained in:
DarthMooMancer
2025-08-10 00:29:55 -04:00
parent 4d0d0b5c0a
commit b9d3e91567
14 changed files with 65 additions and 204 deletions
+19 -7
View File
@@ -1,4 +1,20 @@
include config.mk
PREFIX = /usr/local
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${FREETYPELIBS}
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
CC = gcc
SRC = drw.c dwm.c util.c
OBJ = ${SRC:.c=.o}
@@ -8,7 +24,7 @@ all: dwm
.c.o:
${CC} -c ${CFLAGS} $<
${OBJ}: config.h config.mk
${OBJ}: config.h
dwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
@@ -17,11 +33,7 @@ clean:
rm -f dwm ${OBJ}
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f dwm ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
install -Dm755 dwm ${DESTDIR}${PREFIX}/bin/dwm
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
.PHONY: all install clean uninstall