UNIXworkcode

1 # $Id: Makefile.linux,v 1.14 2006/10/26 02:20:16 tringali Exp $ 2 CC=cc 3 AR=ar 4 5 # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS 6 # If using a Motif 2.1 compatible library (LessTif, OM) add 7 # a '-lXp' in front of the -lXext in LIBS. You also drop the 8 # -lXpm from that list. 9 # Ensure that the Motif/LessTif headers and libs are found! 10 # e.g. you may have to add something like 11 # -I/usr/lesstif/include to CFLAGS and 12 # -L/usr/lesstif/lib to LIBS 13 # 14 # To evaluate an alternative layout for the Replace/Find dialog, add 15 # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information. 16 # 17 # For CDE drag'n'drop support add: 18 # CFLAGS+= -DCDE -I/usr/dt/include 19 # LIBS+= -L/usr/dt/lib -R/usr/dt/lib -lDtSvc 20 # 21 22 C_OPT_FLAGS?=-O 23 24 CFLAGS=$(C_OPT_FLAGS) -std=gnu99 -I/usr/X11R6/include -I/usr/include/X11 -DUSE_LPR_PRINT_CMD $(shell pkg-config --cflags xft fontconfig) 25 26 ARFLAGS=-urs 27 28 LIBS=$(LD_OPT_FLAGS) -L/usr/X11R6/lib -lXm -lXt -lX11 -lXrender -lm -lpthread $(shell pkg-config --libs xft fontconfig) 29 30 include Makefile.common 31 32