~brown121407/dwm

c03f123a98daf447ea5d0649af74a6e350e96cf9 — Alexandru-Sergiu Marton 1 year, 21 days ago bb2e722
Setup Guix compilation.
2 files changed, 14 insertions(+), 18 deletions(-)

M config.mk
A guix-install
M config.mk => config.mk +9 -18
@@ 1,8 1,6 @@
# dwm version
VERSION = 6.2

# Customize below to fit your system

# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man


@@ 10,29 8,22 @@ MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib

# Xinerama, comment if you don't want it
XINERAMALIBS  = -lXinerama
XINERAMAFLAGS = -DXINERAMA
PKG_CONFIG = pkg-config

# freetype
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
INCS = -I$(X11INC) \
	   `$(PKG_CONFIG) --cflags freetype2`

# includes and libs
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
LIBS = -L$(X11LIB) -lX11 -lXft \
	   `$(PKG_CONFIG) --libs xinerama` \
	   `$(PKG_CONFIG) --libs freetype2` \
	   `$(PKG_CONFIG) --libs fontconfig` \
	   -lX11-xcb -lxcb -lxcb-res

# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" -DXINERAMA
#CFLAGS   = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
LDFLAGS  = ${LIBS}

# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}

# compiler and linker
CC = cc

A guix-install => guix-install +5 -0
@@ 0,0 1,5 @@
#!/bin/sh

guix environment dwm --ad-hoc pkg-config -- make clean install PREFIX=~/.local CC=gcc
make clean
rm -rf config.h