wmii/config.mk

70 lines
1.5 KiB
Makefile
Raw Permalink 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
2009-09-29 04:09:38 +04:00
DOC = $(PREFIX)/share/doc/wmii
ETC = $(PREFIX)/etc
LIBDIR = $(PREFIX)/lib
INCLUDE = $(PREFIX)/include
PYPREFIX = --prefix=$(PREFIX)
2005-11-18 18:54:58 +03:00
# Includes and libs
2009-10-10 00:40:33 +04:00
INCLUDES = -I. -I$(ROOT)/include -I$(INCLUDE) -I/usr/include
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
# Flags
include $(ROOT)/mk/gcc.mk
CFLAGS += -Os $(DEBUGCFLAGS)
2009-10-26 22:27:43 +03:00
LDFLAGS += -g
# 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
PYTHON = python
2010-05-27 11:58:02 +04:00
X11PACKAGES = x11 xinerama xrender xrandr
2009-05-21 22:22:58 +04:00
INCX11 = $$(pkg-config --cflags $(X11PACKAGES))
LIBIXP = $(LIBDIR)/libixp.a
# 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
# 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
# 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
# Darwin
#STATIC = # Darwin doesn't like static linking
#SHARED = -dynamiclib
#SOEXT = dylib
2006-10-30 11:54:22 +03:00
# Solaris
#SHELL = /bin/bash
#CFLAGS = -fast $(INCS)
#LDFLAGS = $(LIBS) -R$(PREFIX)/lib -lsocket -lnsl
2006-10-30 11:54:22 +03:00
#CFLAGS += -xtarget=ultra