recipes

packages recipes for the <noname> package manager
Log | Files | Refs

config.mk (1262B)


      1 # dmenu version
      2 VERSION = 4.6
      3 
      4 # paths
      5 PREFIX = /usr/local
      6 MANPREFIX = ${PREFIX}/share/man
      7 
      8 # Xinerama, comment if you don't want it
      9 XINERAMALIBS  = -lXinerama
     10 XINERAMAFLAGS = -DXINERAMA
     11 
     12 # freetype
     13 FREETYPELIBS = -lfontconfig -lXft
     14 FREETYPEINC = /usr/include/freetype2
     15 # OpenBSD (uncomment)
     16 FREETYPEINC = ${X11INC}/freetype2
     17 
     18 INCS = \
     19 	-I$(libtinyx11)/include \
     20 	-I$(libXft)/include \
     21 	-I$(libfreetype)/include \
     22 	-I$(libfontconfig)/include
     23 
     24 # Mind that the order has an imporance
     25 LIBS = \
     26 	-L$(libfontconfig)/lib -lfontconfig \
     27 	-L$(libXft)/lib -lXft \
     28 	-L$(libfreetype)/lib -lfreetype \
     29 	-L$(libtinyx11)/lib \
     30 	-lfontconfig \
     31 		-lXrender -lX11 -lICE -lSM -lX11 -lXau -lXaw -lXcursor \
     32 		-lXdmcp -lXext -lXfixes -lXfont -lXi -lXinerama -lXmu \
     33 		-lXmuu -lXpm -lXss -lXt -lXtst -lXv \
     34 	-L$(libexpat)/lib -lexpat \
     35 	-L$(libuuid)/lib -luuid
     36 
     37 # flags
     38 CPPFLAGS = -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
     39 CFLAGS   = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
     40 LDFLAGS  = -s ${LIBS}
     41 
     42 # flags
     43 #CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
     44 #CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
     45 
     46 # compiler and linker
     47 CC = cc