OpenBSD対応
This commit is contained in:
1
Makefile
1
Makefile
@@ -18,6 +18,7 @@ config.h:
|
||||
|
||||
dwm: ${OBJ}
|
||||
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
||||
strip dwm
|
||||
|
||||
clean:
|
||||
rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
|
||||
|
||||
@@ -13,11 +13,19 @@ static const int user_bh = 2; /* 2 is the default spacing arou
|
||||
static const int monoclemode = 4;
|
||||
static const char *fonts[] = { "monospace:size=10" };
|
||||
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_gray2[] = "#f35869";
|
||||
static const char col_gray3[] = "#b61729"; // red on black
|
||||
static const char col_gray4[] = "#fcfcfc"; // black on red
|
||||
static const char col_cyan[] = "#b61729";
|
||||
#endif
|
||||
static const unsigned int baralpha = 0xd0;
|
||||
static const unsigned int borderalpha = OPAQUE;
|
||||
static const char *colors[][3] = {
|
||||
|
||||
@@ -35,7 +35,10 @@ FREETYPEINC = ${INC}/freetype2
|
||||
# includes and libs
|
||||
.if "${UNAME}" == "OpenBSD"
|
||||
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"
|
||||
INCS = -I${INC} -I${FREETYPEINC}
|
||||
LIBS = -L${LIB} \
|
||||
|
||||
Reference in New Issue
Block a user