1/* 2 * This file is included into all Imakefiles. If your default compiler 3 * is not ISO/ANSI compliant, you have to fix it here. Below are a few 4 * example settings for systems I have access to. 5 * 6 * NOTE: The compilers on most platforms are not conformant by default. 7 * Linux is a notable exception. 8 * 9 * Also note that if you change anything here you should start the build 10 * process over from scratch with 11 * 12 * xmkmf ; make Makefiles ; make clean ; make all 13 * 14 * to make sure the changes take effect. 15 */ 16 17 18/* Below are some compiler settings for different systems. 19 * 20 * CC is the name of the compiler. 21 * CCOPTIONS are the flags needed to make it compile C (!). 22 * CDEBUGFLAGS optimization/debug flags. 23 */ 24 25/* gcc on decent systems */ 26#if 0 27CC = gcc 28CCOPTIONS = -ansi -pedantic -Wall 29CDEBUGFLAGS = -O2 30#endif 31 32/* gcc on SunOS 4.1.x (and maybe other non-decent systems) */ 33#if 0 34CC = gcc 35CCOPTIONS = -ansi -pedantic -Wall -D__USE_FIXED_PROTOTYPES__ 36CDEBUGFLAGS = -O2 37#endif 38 39/* Sun's acc compiler */ 40#if 0 41CC = acc 42CCOPTIONS = -Xc 43CDEBUGFLAGS = -O2 44#endif 45 46/* Dec's cc complier */ 47#if 0 48CC = cc 49CCOPTIONS = -std1 50CDEBUGFLAGS = -O2 51#endif 52 53/* I think some SysV-ish systems want this */ 54#if 0 55CC = cc 56CCOPTIONS = -Aa 57CDEBUGFLAGS = -O 58#endif 59 60/* Debugflags... */ 61#if 0 62CDEBUGFLAGS = -O -g 63#endif 64 65 66 67 68/* 69 * This is where you specify libraries and such for inline images. 70 * These won't actually be used unless HAVE_JPEG, HAVE_PNG and/or 71 * HAVE_COMPFACE are defined to 1 in configure.h. 72 * 73 * Note that libz may be libgz on some systems, so -lz may need to 74 * be changed to -lgz. 75 */ 76 77JPEG_LIB = -L!!LOCALBASE!!/lib -ljpeg 78PNG_LIB = -lpng -lz -lm 79COMPFACE_LIB = -lcompface 80 81 82/* 83 * If you need to add include paths for e.g. libjpeg, libpng or libzlib 84 * include files, do it here. 85 */ 86KNEWS_INCLUDES = -I!!LOCALBASE!!/include 87