wmii/config.mk

63 lines
1.5 KiB
Makefile
Raw Normal View History

2006-10-12 18:10:57 +04:00
# Customize below to fit your system
2005-11-18 18:54:58 +03:00
# Paths
PREFIX = /usr/local
BIN = $(PREFIX)/bin
MAN = $(PREFIX)/share/man
ETC = $(PREFIX)/etc
LIBDIR = $(PREFIX)/lib
INCLUDE = $(PREFIX)/include
2005-11-18 18:54:58 +03:00
# Includes and libs
INCPATH = .:$(ROOT)/include:$(INCLUDE):/usr/include
LIBS = -L$(ROOT)/lib -L/usr/lib
2005-11-18 18:54:58 +03:00
# Flags
include $(ROOT)/mk/gcc.mk
2008-10-14 12:54:35 +04:00
CFLAGS += $(DEBUGCFLAGS) -O0
LDFLAGS += -g $(LIBS)
SOLDFLAGS += $(LDFLAGS)
SHARED = -shared -Wl,-soname=$(SONAME)
2007-03-26 09:26:10 +04:00
STATIC = -static
# Compiler, Linker. Linker should usually *not* be ld.
2007-07-03 13:20:01 +04:00
CC = cc -c
LD = cc
# Archiver
AR = ar crs
AWKPATH = $$(which awk)
2007-06-30 01:49:58 +04:00
P9PATHS = ${PLAN9}:"'$${HOME}/plan9'":/usr/local/plan9:/usr/local/9:/opt/plan9:/opt/9:/usr/plan9:/usr/9
2008-05-30 01:22:56 +04: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
2009-05-21 22:22:58 +04:00
X11PACKAGES = xft
INCX11 = $$(pkg-config --cflags $(X11PACKAGES))
LIBICONV = # Leave blank if your libc includes iconv (glibc does)
LIBIXP = $(LIBDIR)/libixp.a
# Operating System Configurations
# 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
# *BSD
2008-08-25 20:47:56 +04:00
#LIBICONV = -L/usr/local/lib -liconv
# +Darwin
#STATIC = # Darwin doesn't like static linking
#SHARED = -dynamiclib
#SOEXT = dylib
2006-10-30 11:54:22 +03:00
# Solaris
#CFLAGS = -fast $(INCS)
#LDFLAGS = $(LIBS) -R$(PREFIX)/lib -lsocket -lnsl
2006-10-30 11:54:22 +03:00
#CFLAGS += -xtarget=ultra