2008-07-15 18:53:38 +02:00
|
|
|
# svkbd version
|
|
|
|
VERSION = 0.1
|
|
|
|
|
2011-03-25 15:14:12 +01:00
|
|
|
LAYOUT ?= en
|
2011-03-24 19:31:00 +01:00
|
|
|
|
2008-07-15 18:53:38 +02:00
|
|
|
# Customize below to fit your system
|
|
|
|
|
|
|
|
# paths
|
2011-04-04 13:39:31 +02:00
|
|
|
PREFIX ?= /usr/local
|
2008-07-15 18:53:38 +02:00
|
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
|
|
|
|
X11INC = /usr/X11R6/include
|
|
|
|
X11LIB = /usr/X11R6/lib
|
|
|
|
|
|
|
|
# includes and libs
|
2011-03-24 19:31:00 +01:00
|
|
|
INCS = -I. -I./layouts -I/usr/include -I${X11INC}
|
2008-07-15 22:12:55 +02:00
|
|
|
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lXtst
|
2008-07-15 18:53:38 +02:00
|
|
|
|
|
|
|
# flags
|
2011-03-24 19:31:00 +01:00
|
|
|
CPPFLAGS = -DVERSION=\"${VERSION}\" \
|
|
|
|
${XINERAMAFLAGS}
|
2008-07-15 18:53:38 +02:00
|
|
|
CFLAGS = -g -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
|
|
|
LDFLAGS = -g ${LIBS}
|
|
|
|
|
|
|
|
# Solaris
|
|
|
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
|
|
|
#LDFLAGS = ${LIBS}
|
|
|
|
|
|
|
|
# compiler and linker
|
|
|
|
CC = cc
|
2011-03-24 19:31:00 +01:00
|
|
|
|