forked from idunham/tinyxlib
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.mk
More file actions
22 lines (17 loc) · 683 Bytes
/
config.mk
File metadata and controls
22 lines (17 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# compiler and linker
CC=gcc
# flags
CPPFLAGS=-Dlinux -D_XOPEN_SOURCE=600 -D_POSIX_SOURCE -DPOSIX_SOURCE=199309L -D_BSD_SOURCE -D_GNU_SOURCE -DUSECMS
CFLAGS=-pipe -Os -mtune=generic -Wall -fno-strength-reduce -nodefaultlibs -fno-strict-aliasing -ffunction-sections -fdata-sections $(INCS)
LDFLAGS=-Wl,--gc-sections,--sort-common,-s $(LIBS)
# install paths
PREFIX=/usr
LIBDIR=${PREFIX}/lib
INCDIR=${PREFIX}/include
DATADIR=${PREFIX}/share/X11
# includes and libs
LIBS = -L/usr/lib
INCS = -I. -I../include -I../include/X11 -I../libxtrans
#If you do not have setlocale, set this:
#CPPFLAGS+= -DX_LOCALE -DXLOCALEDIR=\"/usr/share/locale\"
KEYSYMDB=${PREFIX}/share/X11/XKeysymDB