File: Local.config

package info (click to toggle)
xpaint 2.6.2-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,520 kB
  • ctags: 2,552
  • sloc: ansic: 26,927; makefile: 43; sh: 23
file content (154 lines) | stat: -rw-r--r-- 4,104 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#ifndef XCOMM
#define XCOMM #
#endif

XCOMM Configuration portion of Imakefile for XPaint 2.4.5
XCOMM
XCOMM $Id: Local.config,v 1.27 2001/06/12 19:26:45 torsten Exp $

XCOMM For FreeBSD, NetBSD and BSD386, no changes should be necessary, unless
XCOMM your libraries are in nonstandard places.

XCOMM For SunOS 4.1, include
XCOMM
XCOMM	   -DDECLARE_DRAND48
XCOMM
XCOMM Defines that may or may not be useful
XCOMM
XCOMM      -DMISSING_STRERROR if you system doesn't have strerror()
XCOMM      -DMISSING_STDARG_H if you system doesn't have <stdarg.h>
XCOMM      -DNOSTDHDRS        if you don't have <unistd.h> or <stdlib.h>
XCOMM 
XCOMM	   -DERRORBEEP        beep on errors
XCOMM 
XCOMM Defines for experimental features
XCOMM 
XCOMM      -DFEATURE_FRACTAL  for fractal fill operator
XCOMM      -DFEATURE_TILT     for tilting the region
XCOMM 
XCOMM Defines for reinstating old behaviour
XCOMM 
XCOMM      -DFILTERNEEDSSELECTION	to get old behaviour of filter commands
XCOMM 

EXTRA_DEFINES = -DERRORBEEP -DFEATURE_FRACTAL -DFEATURE_TILT

XCOMM 
XCOMM According to Craig Ian Dewick <craig@lios.apana.org.au>, this should not
XCOMM be necessary with Solaris 8 (SunOS 5.8).
XCOMM 
XCOMM #ifdef SunArchitecture
XCOMM ARCH_DEFINES = -DMISSING_STRERROR
XCOMM #endif

#ifdef NetBSDArchitecture
ARCH_DEFINES = -DHAVE_PARAM_H  
#endif

#ifdef OS2Architecture
ARCH_DEFINES = -DMISSING_STRCASECMP
#endif

XCOMM Need an ANSI C compiler
XCOMM
XCOMM  Which is either 'gcc' or 'acc' on a SparcStation
XCOMM   most MIPS based machines will do just fine using 'cc'
XCOMM
XCOMM CC = gcc
XCOMM CC = acc

XCOMM  If you have the TIFF library, make HaveTIFF defined
XCOMM    and make sure the path names to the library and 
XCOMM    includes are correct.
XCOMM

#define HaveTIFF

#ifdef HaveTIFF
TIFF_LIB     = -ltiff
TIFF_INCLUDE = 
#endif

XCOMM  If you have the JPEG library, make HaveJPEG defined
XCOMM    and make sure the path names to the library and 
XCOMM    includes are correct.

#define HaveJPEG

#ifdef HaveJPEG
JPEG_LIB     = -ljpeg
JPEG_INCLUDE = 
#endif

XCOMM  If you have the PNG library, make HavePNG defined
XCOMM    and make sure the path names to the library and 
XCOMM    includes are correct.

#define HavePNG

#ifdef HavePNG
PNG_LIB     = -lpng -lz
PNG_INCLUDE = 
#endif

XCOMM  If you are running SunOS and get an error with the following undefined
XCOMM    symbols from the link line:
XCOMM       _get_wmShellWidgetClass
XCOMM       _get_applicationShellWidgetClass
XCOMM
XCOMM  try uncommenting these lines:
XCOMM
XCOMM #undef XawClientLibs
XCOMM #define XawClientLibs -lXaw -Bstatic -lXmu -Bdynamic -lXt -lXext -lX11
XCOMM

XCOMM  You must have the XPM library.
XCOMM  Make sure the path name to the library is correct.

XPM_LIB     = -L/usr/X11R6/lib -lXpm

XCOMM  Make sure this points to the location of the 'xpm.h' file.

XPM_INCLUDE = -I/usr/X11R6/include/X11


DEPENDFLAGS = -I./bitmaps

XCOMM Uncomment these lines and tailor to taste, if you don't like
XCOMM the default paths and man page extension.
XCOMM
XCOMM BINDIR = /usr/local/bin
XCOMM MANDIR = /usr/local/man
XCOMM #undef ManSuffix
XCOMM #define ManSuffix 1

XCOMM Add '-g' here if you want to include debugging information.
XCOMM Also add any optimizer flags etc. that you want.
XCOMM
XCOMM	CDEBUGFLAGS = -g
XCOMM
XCOMM I have been told that compilation on AIX 3.2.5/IBM RS/6000 requires
XCOMM that you use the 'qlanglvl=ansi' flag.

CDEBUGFLAGS = -g -O2 -Wall
#define PassCDebugFlags CDEBUGFLAGS='$(CDEBUGFLAGS)'

XCOMM This should take care of everything needed for BSD.

#if defined(NetBSDArchitecture) || defined(BSD386Architecture)
ARCH_DEFINES = -DHAVE_PARAM_H
TIFF_INCLUDE = -I/usr/local/include
TIFF_LIB     = -L/usr/local/lib -ltiff
JPEG_INCLUDE = -I/usr/local/include
JPEG_LIB     = -L/usr/local/lib -ljpeg
XPM_INCLUDE = -I/usr/X11R6/include/X11
#endif

#if defined(FreeBSDArchitecture)
ARCH_DEFINES = -DHAVE_PARAM_H
TIFF_INCLUDE = -I/usr/local/include/tiff34
TIFF_LIB     = -L/usr/local/lib -ltiff34
JPEG_INCLUDE = -I/usr/local/include
JPEG_LIB     = -L/usr/local/lib -ljpeg
XPM_INCLUDE = -I/usr/X11R6/include/X11
#endif