2006-10-12 18:10:57 +04:00
|
|
|
# Customize below to fit your system
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2008-01-21 02:00:21 +03:00
|
|
|
# Paths
|
2006-05-31 21:48:44 +04:00
|
|
|
PREFIX = /usr/local
|
2008-01-18 01:50:35 +03:00
|
|
|
BIN = $(PREFIX)/bin
|
|
|
|
MAN = $(PREFIX)/share/man
|
2009-09-29 04:09:38 +04:00
|
|
|
DOC = $(PREFIX)/share/doc/wmii
|
2008-01-18 01:50:35 +03:00
|
|
|
ETC = $(PREFIX)/etc
|
|
|
|
LIBDIR = $(PREFIX)/lib
|
|
|
|
INCLUDE = $(PREFIX)/include
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2007-03-26 08:48:00 +04:00
|
|
|
# Includes and libs
|
2009-10-10 00:40:33 +04:00
|
|
|
INCLUDES = -I. -I$(ROOT)/include -I$(INCLUDE) -I/usr/include
|
2008-12-10 03:23:34 +03:00
|
|
|
LIBS = -L$(ROOT)/lib -L/usr/lib
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2009-10-10 00:40:33 +04:00
|
|
|
TERMINAL = xterm
|
|
|
|
|
2007-03-26 08:48:00 +04:00
|
|
|
# Flags
|
2008-01-18 01:50:35 +03:00
|
|
|
include $(ROOT)/mk/gcc.mk
|
2008-10-14 12:54:35 +04:00
|
|
|
CFLAGS += $(DEBUGCFLAGS) -O0
|
2009-10-26 22:27:43 +03:00
|
|
|
LDFLAGS += -g
|
2010-01-23 03:31:26 +03:00
|
|
|
|
2008-01-18 01:50:35 +03:00
|
|
|
# Compiler, Linker. Linker should usually *not* be ld.
|
2007-07-03 13:20:01 +04:00
|
|
|
CC = cc -c
|
|
|
|
LD = cc
|
2007-07-01 15:08:30 +04:00
|
|
|
# Archiver
|
|
|
|
AR = ar crs
|
2007-03-26 08:48:00 +04:00
|
|
|
|
2010-05-23 02:58:37 +04:00
|
|
|
X11PACKAGES = x11 xinerama xrender
|
2009-05-21 22:22:58 +04:00
|
|
|
INCX11 = $$(pkg-config --cflags $(X11PACKAGES))
|
2008-01-18 01:50:35 +03:00
|
|
|
LIBIXP = $(LIBDIR)/libixp.a
|
|
|
|
|
2010-05-23 02: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-23 03:31:26 +03: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 08:48:00 +04:00
|
|
|
|
2008-01-29 01:58:23 +03: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-23 02:58:37 +04:00
|
|
|
# Darwin
|
2008-01-21 02:00:21 +03:00
|
|
|
#STATIC = # Darwin doesn't like static linking
|
2008-01-24 05:45:30 +03:00
|
|
|
#SHARED = -dynamiclib
|
|
|
|
#SOEXT = dylib
|
2007-03-26 08:48:00 +04:00
|
|
|
|
2006-10-30 11:54:22 +03:00
|
|
|
# Solaris
|
2010-05-26 16:47:24 +04:00
|
|
|
#SHELL = /bin/bash
|
2008-01-18 01:50:35 +03:00
|
|
|
#CFLAGS = -fast $(INCS)
|
|
|
|
#LDFLAGS = $(LIBS) -R$(PREFIX)/lib -lsocket -lnsl
|
2006-10-30 11:54:22 +03:00
|
|
|
#CFLAGS += -xtarget=ultra
|
2007-04-20 07:27:26 +04:00
|
|
|
|