2006-10-12 16:10:57 +02:00
|
|
|
# Customize below to fit your system
|
2005-11-18 17:54:58 +02:00
|
|
|
|
2008-01-20 18:00:21 -05:00
|
|
|
# Paths
|
2006-05-31 19:48:44 +02:00
|
|
|
PREFIX = /usr/local
|
2008-01-17 17:50:35 -05:00
|
|
|
BIN = $(PREFIX)/bin
|
|
|
|
MAN = $(PREFIX)/share/man
|
2009-09-28 20:09:38 -04:00
|
|
|
DOC = $(PREFIX)/share/doc/wmii
|
2008-01-17 17:50:35 -05:00
|
|
|
ETC = $(PREFIX)/etc
|
|
|
|
LIBDIR = $(PREFIX)/lib
|
|
|
|
INCLUDE = $(PREFIX)/include
|
2010-06-27 17:47:45 -04:00
|
|
|
PYPREFIX = --prefix=$(PREFIX)
|
2005-11-18 17:54:58 +02:00
|
|
|
|
2007-03-26 00:48:00 -04:00
|
|
|
# Includes and libs
|
2009-10-09 16:40:33 -04:00
|
|
|
INCLUDES = -I. -I$(ROOT)/include -I$(INCLUDE) -I/usr/include
|
2008-12-09 19:23:34 -05:00
|
|
|
LIBS = -L$(ROOT)/lib -L/usr/lib
|
2005-11-18 17:54:58 +02:00
|
|
|
|
2009-10-09 16:40:33 -04:00
|
|
|
TERMINAL = xterm
|
|
|
|
|
2007-03-26 00:48:00 -04:00
|
|
|
# Flags
|
2008-01-17 17:50:35 -05:00
|
|
|
include $(ROOT)/mk/gcc.mk
|
2010-05-27 13:55:34 -04:00
|
|
|
CFLAGS += -Os $(DEBUGCFLAGS)
|
2009-10-26 15:27:43 -04:00
|
|
|
LDFLAGS += -g
|
2010-01-22 19:31:26 -05:00
|
|
|
|
2008-01-17 17:50:35 -05:00
|
|
|
# Compiler, Linker. Linker should usually *not* be ld.
|
2007-07-03 05:20:01 -04:00
|
|
|
CC = cc -c
|
|
|
|
LD = cc
|
2007-07-01 07:08:30 -04:00
|
|
|
# Archiver
|
|
|
|
AR = ar crs
|
2007-03-26 00:48:00 -04:00
|
|
|
|
2010-06-27 17:47:45 -04:00
|
|
|
PYTHON = python
|
|
|
|
|
2010-05-27 03:58:02 -04:00
|
|
|
X11PACKAGES = x11 xinerama xrender xrandr
|
2009-05-21 14:22:58 -04:00
|
|
|
INCX11 = $$(pkg-config --cflags $(X11PACKAGES))
|
2008-01-17 17:50:35 -05:00
|
|
|
LIBIXP = $(LIBDIR)/libixp.a
|
|
|
|
|
2010-05-22 18:58:37 -04:00
|
|
|
# Enable RTLD. Only necessary for Xft support.
|
|
|
|
CFLAGS += -DHAVE_RTLD
|
|
|
|
LDFLAGS += -ldl # Comment this out on BSD systems.
|
|
|
|
|
|
|
|
SOLDFLAGS += $(LDFLAGS)
|
|
|
|
SHARED = -shared -Wl,-soname=$(SONAME)
|
|
|
|
STATIC = -static
|
|
|
|
|
2010-01-22 19:31:26 -05:00
|
|
|
# Your make shell. By default, the first found of /bin/dash, /bin/ksh,
|
|
|
|
# /bin/sh. Except with bsdmake, which assumes /bin/sh is sane. bash and zsh
|
|
|
|
# are painfully slow, and should be avoided.
|
|
|
|
#BINSH = /bin/ash
|
|
|
|
|
|
|
|
## Operating System Configurations
|
2007-03-26 00:48:00 -04:00
|
|
|
|
2008-01-28 17:58:23 -05:00
|
|
|
# KenCC
|
|
|
|
# Note: wmii *must* always compile under KenCC. It's vital for
|
|
|
|
# argument checking in formatted IO, and similar diagnostics.
|
|
|
|
#CFLAGS = -wF
|
|
|
|
#STATIC = # Implied
|
|
|
|
#CC=pcc -c
|
|
|
|
#LD=pcc
|
|
|
|
|
2010-05-22 18:58:37 -04:00
|
|
|
# Darwin
|
2008-01-20 18:00:21 -05:00
|
|
|
#STATIC = # Darwin doesn't like static linking
|
2008-01-23 21:45:30 -05:00
|
|
|
#SHARED = -dynamiclib
|
|
|
|
#SOEXT = dylib
|
2007-03-26 00:48:00 -04:00
|
|
|
|
2006-10-30 09:54:22 +01:00
|
|
|
# Solaris
|
2010-05-26 08:47:24 -04:00
|
|
|
#SHELL = /bin/bash
|
2008-01-17 17:50:35 -05:00
|
|
|
#CFLAGS = -fast $(INCS)
|
|
|
|
#LDFLAGS = $(LIBS) -R$(PREFIX)/lib -lsocket -lnsl
|
2006-10-30 09:54:22 +01:00
|
|
|
#CFLAGS += -xtarget=ultra
|
2007-04-19 23:27:26 -04:00
|
|
|
|