OpenBSD対応

This commit is contained in:
2026-01-18 02:12:17 +09:00
parent cddb0d6822
commit 857a6770c7
3 changed files with 13 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ config.h:
dwm: ${OBJ} dwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS} ${CC} -o $@ ${OBJ} ${LDFLAGS}
strip dwm
clean: clean:
rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz

View File

@@ -13,11 +13,19 @@ static const int user_bh = 2; /* 2 is the default spacing arou
static const int monoclemode = 4; static const int monoclemode = 4;
static const char *fonts[] = { "monospace:size=10" }; static const char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "monospace:size=8"; static const char dmenufont[] = "monospace:size=8";
#if defined(__OpenBSD__)
static const char col_gray1[] = "#232320";
static const char col_gray2[] = "#ecea71";
static const char col_gray3[] = "#b8b515"; // red on black
static const char col_gray4[] = "#fcfcfc"; // black on red
static const char col_cyan[] = "#b8b515";
#elif defined(__FreeBSD__)
static const char col_gray1[] = "#232020"; static const char col_gray1[] = "#232020";
static const char col_gray2[] = "#f35869"; static const char col_gray2[] = "#f35869";
static const char col_gray3[] = "#b61729"; // red on black static const char col_gray3[] = "#b61729"; // red on black
static const char col_gray4[] = "#fcfcfc"; // black on red static const char col_gray4[] = "#fcfcfc"; // black on red
static const char col_cyan[] = "#b61729"; static const char col_cyan[] = "#b61729";
#endif
static const unsigned int baralpha = 0xd0; static const unsigned int baralpha = 0xd0;
static const unsigned int borderalpha = OPAQUE; static const unsigned int borderalpha = OPAQUE;
static const char *colors[][3] = { static const char *colors[][3] = {

View File

@@ -35,7 +35,10 @@ FREETYPEINC = ${INC}/freetype2
# includes and libs # includes and libs
.if "${UNAME}" == "OpenBSD" .if "${UNAME}" == "OpenBSD"
INCS = -I${X11INC} -I${FREETYPEINC} INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lXrender LIBS = -L${X11LIB} \
-static \
-lX11 -lXinerama -lfontconfig -lXft -lXrender -lc -lxcb \
-lpthread -lXext -lfreetype -lexpat -lz -lXau -lXdmcp
.elif "${UNAME}" == "FreeBSD" .elif "${UNAME}" == "FreeBSD"
INCS = -I${INC} -I${FREETYPEINC} INCS = -I${INC} -I${FREETYPEINC}
LIBS = -L${LIB} \ LIBS = -L${LIB} \