/[ascend]/trunk/ascend4/ConfigAscend.in
ViewVC logotype

Contents of /trunk/ascend4/ConfigAscend.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download)
Fri Oct 29 20:54:12 2004 UTC (17 years, 1 month ago) by aw0a
File size: 15829 byte(s)
Setting up web subdirectory in repository
1 # @configure_input@
2 #
3 # This is a configuration file for ASCEND.
4 # If it has the name "ConfigAscend.in", then it is a template
5 # for the "ConfigAscend" configuration file. To generate the
6 # actual "ConfigAscend" file, run "./configure", which is a
7 # configuration script generated by the "autoconf" program.
8 # Constructs like @foo@ will be replaced in the actual
9 # "ConfigAscend" configuration file.
10 #
11 # This file contains the definitions and macros needed by all the
12 # ascend sub-makefiles.
13 #
14 # by Ben Allan June 25, 1994.
15 # $Revision: 1.18 $
16 # $Date: 1999/01/19 16:09:02 $
17 # $Author: mthomas $
18 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/ascend4/ConfigAscend.in,v $
19 #
20 # To build ASCEND you must set some configuration information in
21 # this file and then type 'make'.
22 #
23
24 ####>>> C <<<###############################################################
25
26 # CC
27 # your ansi-compliant C compiler and C preprocessor
28 #
29 CC = @CC@
30 CPP = @CPP@
31
32 # CFLAGS
33 # options for the C compilter
34 # This is where optimization and debugging options should be set.
35 #
36 # The flags which `configure' sets should be sufficient to compile
37 # ascend; however for more error checking and warnings at compile
38 # time, you may want to add the following to the CFLAGS variable.
39 # Note that these flags are compiler and OS dependent.
40 #
41 # Any GCC
42 #CCWARN = -ansi -Wall -Wshadow -W -pedantic
43 # DEC Alpha OSF or Digital-Unix
44 #CCWARN = -std1 -verbose
45 # DEC Ultrix
46 #CCWARN = -std -w0
47 # HP/UX
48 #CCWARN = +w1
49 # IBM AIX
50 #CCWARN =
51 # SGI IRIX
52 #CCWARN = +w
53 # Sun Solaris (2.x) (/opt/SUNWspro/bin/cc)
54 #CCWARN = -v -Xc
55 # Sun SunOS (Solaris 1.x) (/usr/lang/cc)
56 #CCWARN = -vc -Xc
57 #
58 CFLAGS = -O $(CCWARN) # for optimization
59 CFLAGS = -g $(CCWARN) # for debugging
60 CFLAGS = @CFLAGS@ $(CCWARN)
61
62 # All switches to pass to the C compiler
63 #
64 CC_SWITCHES = $(INCLUDES) $(DEFINES) $(CFLAGS)
65
66 # The list of includes. DIR_SPECIFIC_INCS are includes that are specific
67 # to a particular subdirectory of the ASCEND build
68 #
69 INCLUDES = $(ASC_INCS) $(DIR_SPECIFIC_INCS)
70
71 # The list of defines. DIR_SPECIFIC_DEFS are defines that are specific
72 # to a particular subdirectory of the ASCEND build
73 #
74 DEFINES = $(CONFIGURE_DEFS) $(DIR_SPECIFIC_DEFS) \
75 $(MOD_ASCMALLOC) $(FATFUNC) $(MEM_DECREASE)
76
77 # DEBUGGER LIBRARIES
78 # any special files/libraries needed for building a debugging version
79 # of a binary
80 #
81 DEBUG_LIBS = @DEBUG_LIBS@
82
83 # DEFINES
84 # definitions that `configure' generates
85 #
86 CONFIGURE_DEFS = @DEFS@
87
88 # AR
89 # the archiver (normally /bin/ar)
90 #
91 AR = ar
92
93 # RANLIB
94 # set this to ":" on SysV systems; to "ranlib" elsewhere
95 #
96 RANLIB = @RANLIB@
97
98 # LD
99 # the linker/loader
100 #
101 LD = ld
102
103 # YACC
104 # On some old systems yacc writes some K&R extern definitions to
105 # the .c file that it generates. This has caused havoc on at least
106 # one system. Define your yacc here. For the Suns in particular
107 # /usr/lang/SC1.0/ansi/yacc was required. If you cannot find an ansi
108 # compatible yacc, delete the 'extern char *malloc(), realloc() definitions
109 # if generated at the top of your .c created from the .y file.
110 #
111 YACC = @YACC@
112
113 # LEX
114 # We require the flex lexer
115 #
116 LEX = @LEX@
117 LEXLIB = @LEXLIB@
118
119 # UNSIGNED CHARACTERS
120 # Some compilers (notably AIX3.1 cc) default chars to be unsigned which
121 # causes many things to break in file operations, particularly the
122 # detection of EOF conditions. Uncomment one of the CHAR_SIGNS
123 # if your compiler defaults char to be unsigned char.
124 #
125 #CHAR_SIGNS = -qchars=signed
126
127
128 ####>>> FILE UTILITIES <<<##################################################
129
130 # Basic File Utilities
131 #
132 CMP = cmp
133 CP = cp
134 ECHO = echo
135 LN_S = @LN_S@
136 MKDIR = mkdir
137 MV = mv
138 RM = rm -f
139 SED = sed
140
141
142 ####>>> MATH <<<############################################################
143
144 # Some compilers need to be told where to find the math libraries
145 #
146 MATH_LIBS = @MATH_LIBS@
147
148
149 ####>>> X11 <<<#############################################################
150
151 # The interface and 1 file in the solver directory need to know where the
152 # include files and library for X11 are. If your C compiler doesn't know
153 # automatically where the X files are, or if they are in a non-standard
154 # place, set the following variables to point at them. These should be
155 # the same X files that Tk was built with on your system.
156 # Most systems do not need these variables to be set.
157 #
158 # The include files for X11:
159 X11_INCS = @X11_INCLUDES@
160
161 # The libraries files for X11:
162 X11_LIBS = @X11_LIBRARIES@ -lX11 @X11_EXTRA_LIBS@ @X11_RUN_PATH@
163
164
165
166 ####>>> TCL / TK <<<########################################################
167
168
169 # Set the location of the Tcl/Tk libraries and include files.
170 #
171 # The location of the libtk.a and libtcl.a libraries.
172 # The order should be -ltk -ltcl
173 TCL_LIBRARY = @TCL_LIB@
174 TK_LIBRARY = @TK_LIB@
175 TK_LIBS = $(TK_LIBRARY) $(TCL_LIBRARY) $(DL_LIBS)
176
177 # The location of the tcl.h and tk.h header files
178 TK_INCS = @TCL_HDR@ @TK_HDR@
179
180 # If TK_LIBS and TK_INCS are not properly set, ASCEND cannot build.
181
182
183 # We also need the TkTable widget which does not come as a
184 # standard part of the Tcl/Tk distribution. This library can
185 # either be loaded statically or dynamically. If the configure
186 # script found libTktable.a, use static loading; otherwise, use
187 # dynamic loading.
188 #
189 HAVE_TKTABLE = @HAVE_TKTABLE@
190 TKTABLE_LIB = @TKTABLE_LIB@
191
192
193 ####>>> SOLVERS / INTEGRATORS <<<###########################################
194
195 # If you are linking to MINOS or other external solvers, the solver
196 # interface needs to know about it.
197 # Set the comment flags as appropriate on the following definitions.
198 # If the settings here do not match the libraries you link, you will
199 # almost certainly get runtime errors if not link errors.
200
201 # to build with slv, uncomment the next line
202 #EXT_SLV = -DSTATIC_SLV
203
204 # to build with optsqp, uncomment the next line
205 EXT_OPTSQP = @HAVE_OPTSQP@
206 #
207 # location of the rsqp library
208 OPTSQPLIB = @OPTSQPLIB@
209
210 # to build with qrslv, uncomment the next line
211 EXT_QRSLV = -DSTATIC_QRSLV
212
213 # to build with mps, uncomment the next line
214 #EXT_MPS = -DSTATIC_MPS
215
216 # to build with ngslv, uncomment the next line
217 #EXT_NGSLV = -DSTATIC_NGSLV
218
219 # to build with cmslv, uncomment the next line
220 #EXT_CMSLV = -DSTATIC_CMSLV
221
222 # to build with lrslv, uncomment the next line
223 #EXT_LRSLV = -DSTATIC_LRSLV
224
225 # the configure script sets the following depending on its search for minos.
226 # to force a build WITHOUT minos, comment the next line
227 #EXT_MINOS = @HAVE_MINOS@
228 #
229 # location of the minos library
230 #MINOSLIB = @MINOSLIB@
231
232 # the configure script sets the following depending on its search for conopt.
233 # to force a build WITHOUT conopt, comment the next line
234 EXT_CONOPT = @HAVE_CONOPT@
235 #
236 # location of the conopt library
237 CONOPTLIB = @CONOPTLIB@
238
239 # the configure script sets the following depending on its search for lsode.
240 # to force a build WITHOUT lsode, comment the next line
241 EXT_LSOD = @HAVE_LSOD@
242 #
243 # location of the lsode library
244 LSODLIB = @LSODLIB@
245
246 # combine all the defines for the solver into a single variable
247 SOLVER_DEFS = $(EXT_SLV) $(EXT_OPTSQP) $(EXT_QRSLV) $(EXT_MPS) $(EXT_NGSLV) \
248 $(EXT_CMSLV) $(EXT_LRSLV) $(EXT_MINOS) $(EXT_CONOPT) $(EXT_LSOD) \
249 $(EXT_OPTSQP)
250
251
252 ####>>> PACKAGES <<<########################################################
253
254 # Build ascend with packages.
255 # Packages are bits of compiled code that represent models, or solvers,
256 # or, in general, any bits of external code.
257
258 # Packages may be dynamically or statically linked/loaded. Add one or
259 # the other defines : -DSTATIC_PACKAGES or -DDYNAMIC_PACKAGES
260 #
261 HAVE_PACKAGES = -DSTATIC_PACKAGES
262 #HAVE_PACKAGES = -DDYNAMIC_PACKAGES
263
264 # If statically linked, i.e. -DSTATIC_PACKAGES, then set PACK_LIBS
265 # to where your external packages exist. If dynamically linked or
266 # if you are building with NO_PACKAGES, leave PACK_LIBS empty.
267 #
268 PACK_LIBS = ../archive/libpackages.a
269 #PACK_LIBS =
270
271 # The default behavor is to have packages, so if you don't want
272 # packages, you have to uncomment the following line
273 #HAVE_PACKAGES = -DNO_PACKAGES
274
275
276 ####>>> SHARED OBJECTS <<<##################################################
277
278 # When using dynamic packages or no packages, the Makefile needs
279 # to know how to make a shared object and what suffix the
280 # shared object should have.
281 #
282 # Library file(s) to link against for dynamic loading to work
283 DL_LIBS = @DL_LIBS@
284 #
285 # Flags to pass to the C compiler when linking object files
286 # into an executable application binary
287 LD_FLAGS = @LD_FLAGS@
288 #
289 # Flags to pass to ld to tell the run-time linker where to find
290 # shared objects
291 LD_SEARCH_FLAGS = @LD_SEARCH_FLAGS@
292 #
293 # Flags to pass to the C compiler when compiling the components
294 # of a shared library
295 SHLIB_CFLAGS = @SHLIB_CFLAGS@
296 #
297 # Base command to use to combing object files into a shared library
298 SHLIB_LD = @SHLIB_LD@
299 #
300 # Dependent libraries for the linker to scan when creating a shared
301 # library
302 SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
303 #
304 # Suffix to use for the names of dynamically loadable objects.
305 SHLIB_SUFFIX = @SHLIB_SUFFIX@
306 #
307 # Specifies everything that comes after libfoo in the shared library
308 # "foo"
309 ASC_LIB_SUFFIX = @ASC_LIB_SUFFIX@
310
311
312 ####>>> F77 <<<#############################################################
313
314 # F77
315 # your f77 compiler
316 #
317 F77 = @F77@
318
319 # Fortran compilation flags:
320 # These are used for making the ASCEND libraries based on FORTRAN codes.
321 # These should be set to get the best performance possible out of your
322 # f77 compiler without optimizing away functions that are not obviously
323 # called, as some compilers do by default.
324 #
325 F77FLAGS = -I4 -O
326 #
327 # F77LIBS is for the base f77 libraries. If you are linking no f77
328 # objects to ascend, it may be left undefined.
329 # Set F77LIBS appropriate for your machine and desired loader behavior.
330 #
331 F77_LIBS = @F77LIBS@
332 #
333 # F77_OPTS are for miscellaneous options, such as -tmpdir=
334 #
335 F77_OPTS =
336 #
337 # All the flags to pass to F77
338 #
339 F77_SWITCHES = $(F77FLAGS) $(F77_OPTS)
340
341 ####>>> FORTRAN LIBRARIES <<<###############################################
342
343 # If building ASCEND with MINOS or other FORTRAN based solvers/packages,
344 # uncomment one of the FOR_LIBS definitions below to indicate the FORTRAN
345 # libraries to link into ASCEND.
346 #
347 # Set the BLAS and LINPACK library definitions to point at
348 # machine specific libraries (if you have them) to get the
349 # best speed out of ASCEND.
350 #
351 BLASLIB = @BLASLIB@
352 LPAKLIB = @LPAKLIB@
353
354 FOR_LIBS = $(LSODLIB) $(MINOSLIB) $(OPTSQPLIB) $(CONOPTLIB) \
355 $(LPAKLIB) $(BLASLIB) \
356 $(F77_LIBS)
357
358
359 ####>>> INSTALL <<<#########################################################
360
361 # Location to install program, libs, etc, and the install program
362
363 # First, set INSTALL to the location of a BSD-compatible install program
364 #
365 INSTALL = @INSTALL@
366 INSTALL_PROGRAM = @INSTALL_PROGRAM@
367 INSTALL_DATA = @INSTALL_DATA@
368
369 # Where to install information
370 #
371 # prefix for platform dependent files:
372 exec_prefix = @exec_prefix@
373 #
374 # prefix for platfrom independent files (.h, .tcl, .asc, etc)
375 prefix = @prefix@
376 #
377 # directory for ascend binary
378 BIN_DIR = $(exec_prefix)/bin
379 #
380 # directory for ascend scripts
381 SCRIPT_DIR = $(prefix)/bin
382 #
383 # directory for ascend documentation
384 DOC_DIR = $(prefix)/doc
385 #
386 # directory for ascend include files
387 INCLUDE_DIR = $(prefix)/include
388 #
389 # directory for ascend info-style files
390 INFO_DIR = $(prefix)/info
391 #
392 # directory for ascend platform-dependent libraries
393 LIB_DIR = $(exec_prefix)/lib
394 #
395 # top level directory for ascend man pages
396 MAN_DIR = $(prefix)/man
397 #
398 # directories for specific man pages
399 MAN1_DIR = $(MAN_DIR)/man1
400 MAN3_DIR = $(MAN_DIR)/man3
401 MAN5_DIR = $(MAN_DIR)/man5
402 MAN8_DIR = $(MAN_DIR)/man8
403 MANn_DIR = $(MAN_DIR)/mann
404 #
405 # directory for ascend help files
406 HELP_DIR = $(prefix)/help
407 #
408 # directory for ascend models (libraries & examples)
409 MODELS_DIR = $(prefix)/models
410 #
411 # directory for ascend package code
412 PACK_DIR = $(prefix)/packages
413 #
414 # directory for general tcl/tk code
415 TK_LIBRARY_DIR = $(prefix)/lib/tcl
416 #
417 # directory for ascend specific tcl/tk code
418 ASCEND_TK_DIR = $(prefix)/TK
419
420
421 ####>>> CMU DEVELOPERS <<<##################################################
422
423 # The following flags control sources that are not part of the standard
424 # distribution. Do not uncomment any of these lines unless you know
425 # what you are doing; in particular, don't mess with these and then
426 # expect us to be able to help you when it won't build.
427
428 # Tom Epperly's malloc debugger:
429 #
430 # slow
431 #MOD_ASCMALLOC = -DMOD_ASCMALLOC -DMALLOC_DEBUG
432 # slower
433 #MOD_ASCMALLOC = -DMOD_ASCMALLOC -DMALLOC_DEBUG -DALLOCATED_TESTS
434
435 # Damned expensive malloc debugger (sources not distributed):
436 #
437 # slowest
438 #DEBUG_MALLOC_LIBS = ../dbmalloc/libdbmalloc.a
439 #DEBUG_MALLOC = -DBEBUG_MALLOC
440
441 # Find Dependencies: makedepend/g++dep executable
442 #
443 # all dependencies
444 DEPEND = /usr/local/bin/makedepend
445 DEPEND = /usr/local/lib/ascend/etc/g++dep
446 #
447 # all but system dependencies
448 DEPEND_NOSYS = /usr/local/lib/ascend/etc/g++dep_nosys
449 # to make without-system-dependencies the default, uncomment the next line
450 #DEPEND = $(DEPEND_NOSYS)
451 #
452 # remove dependencies information version
453 DEPEND_RM = /usr/local/lib/ascend/etc/g++nodep
454 #
455 # All switches to pass to the dependency generator
456 #
457 DEPEND_FLAGS = $(INCLUDES) $(DEFINES)
458
459
460 # Tags
461 #
462 ETAGS = /usr/local/bin/etags
463 CTAGS = /usr/local/bin/ctags
464
465
466 # cflow, sparc only. on other platforms cflow and dot, if they exist,
467 # may need different switches. dot works well on sun/solaris/hpux OS.
468 # with a bit of hacking on usr/local/lib/ascend we could have dot on
469 # all but alphas since Ben has the sources. Finding cflow may be harder.
470 CFLFLAGS = -DNDEBUG -I.. -I.
471 RCFLFLAGS = -DNDEBUG -I.. -I. -r
472
473 # replaces tabs with 2 blanks for human consumption, and eat externals
474 #CPRCOM = |/usr/5bin/pr -e2 -t | eatcflowext
475 # eat external function calls (fprintf, etc) only
476 CPRCOM = | eatcflowext
477
478 # eat external calls and convert to dot input format
479 CPSCOM = | eatcflowext | eatcflow2dot
480
481 # note sunos4 /bin/cflow is fatally stupid. use sys5 version
482 CFLOW = /usr/lang/cflow
483 # you probably don't have this. It's in my path (~ballan/bin/dot)
484 # dot can be stunningly slow on twisty files.
485 DOT = dot
486 # can also generate mif (-Tmif), etc. see dot man page.
487 DOTFLAGS = -Tps
488 # eatcflowext,eatcflow2dot are tcl script ben wrote. vagu:~ballan/bin
489 # dot is the proprietary lucent graph utility.
490
491
492 # Purify
493 #
494 PURIFY = purify
495 QUANTIFY = quantify
496 #set dirs in the next 3 accordingly
497 PURIFY_OPTS = -always-use-cache-dir -cache-dir=/usr1/ballan/tmp/purify \
498 -windows=no -inuse-at-exit=yes
499 PURIFY_OPTS = -always-use-cache-dir -cache-dir=/usr1/ballan/tmp/purify \
500 -inuse-at-exit=yes
501 QUANTIFY_OPTS = $(PURIFY_OPTS) -record-system-calls=no
502 # use these if you haven't paid pureatria yet.
503 PURIFY_OPTS =
504 QUANTIFY_OPTS = $(PURIFY_OPTS)
505
506
507 # Pixie
508 # (only available on the alpha)
509 #
510 PIXIE = pixie
511 PIXIE_OPTS = -pixie -heavy -lines -invocations -procedures
512 PIXIEDIR= a4
513
514
515 # set the following to -DCHRIS_FUNC to get the extra fucn properties
516 # needed for the Chris Welhelmy solver.
517 #
518 #FATFUNC = -DCHRIS_FUNC
519
520
521 # if your machine's memory is allocated in decreasing order, set the
522 # following to -DMEM_DECREASE to try to keep memory usage more compact
523 #
524 #MEM_DECREASE = -DMEM_DECREASE
525
526
527 ####>>> MISC <<<############################################################
528
529 # include files for ascend
530 #
531 ASC_INCS = -I@asc_include@ -I..
532
533 # library files for ascend
534 #
535 ASC_LIBS = ../archive/libascif.a ../archive/libasc.a ../archive/libsolver.a \
536 ../archive/libutils.a ../archive/libgeneral.a $(PACK_LIBS)
537
538 # The time/place stamp for the executable.
539 # Reverse the comment flags if your cpp doesn't understand it
540 #
541 TIMESTAMP = -DTIMESTAMP="\"by `whoami`@`hostname`\""
542 #TIMESTAMP = -DTIMESTAMP="\"\""
543
544 # Force emacs to treat this file as a Makefile
545 #
546 # Local Variables: ***
547 # mode:Makefile ***
548 # End: ***

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22