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
|
|
|
SOLDFLAGS += $(LDFLAGS)
|
2008-01-24 05:45:30 +03:00
|
|
|
SHARED = -shared -Wl,-soname=$(SONAME)
|
2007-03-26 09:26:10 +04:00
|
|
|
STATIC = -static
|
2006-01-21 14:57:20 +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
|
|
|
|
2009-05-21 22:22:58 +04:00
|
|
|
X11PACKAGES = xft
|
|
|
|
INCX11 = $$(pkg-config --cflags $(X11PACKAGES))
|
2007-04-20 07:27:26 +04:00
|
|
|
LIBICONV = # Leave blank if your libc includes iconv (glibc does)
|
2008-01-18 01:50:35 +03:00
|
|
|
LIBIXP = $(LIBDIR)/libixp.a
|
|
|
|
|
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
|
|
|
|
|
2008-01-16 09:01:04 +03:00
|
|
|
# *BSD
|
2008-08-25 20:47:56 +04:00
|
|
|
#LIBICONV = -L/usr/local/lib -liconv
|
2008-01-16 09:01:04 +03: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
|
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
|
|
|
|