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
|
|
|
|
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
|
2008-01-18 01:50:35 +03:00
|
|
|
INCPATH = .:$(ROOT)/include:$(INCLUDE):/usr/include
|
2008-01-29 01:58:23 +03:00
|
|
|
LIBS = -L/usr/lib -L$(ROOT)/lib
|
2005-11-18 18:54:58 +03:00
|
|
|
|
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
|
2008-01-18 01:50:35 +03:00
|
|
|
LDFLAGS += -g $(LIBS)
|
|
|
|
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
|
|
|
|
2007-04-20 07:27:26 +04:00
|
|
|
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
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
INCX11 = -I/usr/X11R6/include
|
|
|
|
LIBX11 = -L/usr/X11R6/lib -lX11
|
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
|
|
|
|
|
|
|
|
# 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
|
|
|
|