UNIXworkcode

1 # $Id: Makefile.solaris,v 1.11 2006/02/05 18:29:22 yooden Exp $ 2 # 3 # You may have to select the ANSI C compiler here 4 #CC=gcc 5 #CC=/opt/SUNWspro/bin/cc 6 CC=gcc 7 AR=ar 8 9 # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS 10 # For Solaris 2.4, add -DDONT_USE_GLOB 11 # On older Solaris systems, Motif may be in /opt/SUNWmotif or even in 12 # /usr/local. Some Solaris versions require explicit -I/usr/include 13 # as the first include directory. 14 # 15 # To evaluate an alternative layout for the Replace/Find dialog, add 16 # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information. 17 # 18 # To test if the Motif library exports the runtime version 19 # add -DHAVE__XMVERSIONSTRING to CFLAGS 20 # 21 22 ARCH=-m64 23 #ARCH=-m32 24 25 PKGCONFIG_CFLAGS:sh=pkg-config --cflags xft fontconfig 26 CFLAGS=-O -std=gnu99 $(ARCH) -I/usr/openwin/include -I/usr/include/X11 $(PKGCONFIG_CFLAGS) 27 28 ARFLAGS=-urs 29 30 PKGCONFIG_LIBS:sh = pkg-config --libs-only-l xft fontconfig 31 LIBS= -L/usr/lib $(ARCH) -R/usr/sfw/lib/64 -L/usr/sfw/lib/64 -lm -lpthread -lXm -lXt -lX11 -lXrender \ 32 -lsocket -lnsl $(PKGCONFIG_LIBS) 33 34 include Makefile.common 35 36 verify_config: 37