2006-10-12 18:10:57 +04:00
|
|
|
# Customize below to fit your system
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
# paths
|
2006-05-31 21:48:44 +04:00
|
|
|
PREFIX = /usr/local
|
2007-03-26 08:48:00 +04: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
|
2007-07-03 13:20:01 +04:00
|
|
|
INCPATH = .:${ROOT}/include:${INCLUDE}:/usr/include
|
|
|
|
LIBS = -L/usr/lib -lc -L${ROOT}/lib
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2007-03-26 08:48:00 +04:00
|
|
|
# Flags
|
2007-07-03 13:20:01 +04:00
|
|
|
include ${ROOT}/mk/gcc.mk
|
2007-07-17 00:52:35 +04:00
|
|
|
CFLAGS += -g -O0 -DIXPlint
|
2007-07-03 13:20:01 +04:00
|
|
|
LDFLAGS += -g ${LIBS}
|
2007-03-26 09:26:10 +04:00
|
|
|
STATIC = -static
|
2007-06-01 11:10:42 +04:00
|
|
|
MKDEP = cpp -M
|
2006-01-21 14:57:20 +03:00
|
|
|
|
2007-03-26 08:48:00 +04:00
|
|
|
# Compiler
|
2007-07-03 13:20:01 +04:00
|
|
|
CC = cc -c
|
2007-03-26 08:48:00 +04:00
|
|
|
# Linker (Under normal circumstances, this should *not* be 'ld')
|
2007-07-03 13:20:01 +04:00
|
|
|
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
|
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)
|
2007-03-26 08:48:00 +04:00
|
|
|
LIBIXP = ${ROOT}/libixp/libixp.a
|
2007-06-01 11:10:42 +04:00
|
|
|
LIBIXP = ${LIBDIR}/libixp.a
|
2007-03-26 08:48:00 +04:00
|
|
|
|
2006-10-30 11:54:22 +03:00
|
|
|
# Solaris
|
|
|
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
2007-01-13 04:15:55 +03:00
|
|
|
#LDFLAGS = ${LIBS} -R${PREFIX}/lib
|
2006-10-30 11:54:22 +03:00
|
|
|
#LDFLAGS += -lsocket -lnsl
|
|
|
|
#CFLAGS += -xtarget=ultra
|
2007-04-20 07:27:26 +04:00
|
|
|
|
2007-05-21 05:22:12 +04:00
|
|
|
|