/[ascend]/trunk/base/generic/ConfigAscend.in
ViewVC logotype

Contents of /trunk/base/generic/ConfigAscend.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (show annotations) (download)
Thu Dec 9 16:04:34 2004 UTC (18 years, 2 months ago) by aw0a
File size: 16583 byte(s)
adding missing files
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 -D_GNU_SOURCE
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 #AWW20041129:EXT_OPTSQP = @HAVE_OPTSQP@
206 #
207 # location of the rsqp library
208 #AWW20041206: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 #AWW20041129:EXT_CONOPT = @HAVE_CONOPT@
235 #
236 # location of the conopt library
237 #AWW20041206: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 #AWW20041206:SOLVER_DEFS = $(EXT_SLV) $(EXT_OPTSQP) $(EXT_QRSLV) $(EXT_MPS) $(EXT_NGSLV) \
248 #AWW20041206: $(EXT_CMSLV) $(EXT_LRSLV) $(EXT_MINOS) $(EXT_CONOPT) $(EXT_LSOD) \
249 #AWW20041206: $(EXT_OPTSQP)
250 SOLVER_DEFS = $(EXT_QRSLV) $(EXT_LSOD)
251
252
253
254
255 ####>>> PACKAGES <<<########################################################
256
257 # Build ascend with packages.
258 # Packages are bits of compiled code that represent models, or solvers,
259 # or, in general, any bits of external code.
260
261 # Packages may be dynamically or statically linked/loaded. Add one or
262 # the other defines : -DSTATIC_PACKAGES or -DDYNAMIC_PACKAGES
263 #
264 HAVE_PACKAGES = -DSTATIC_PACKAGES
265 #HAVE_PACKAGES = -DDYNAMIC_PACKAGES
266
267 # If statically linked, i.e. -DSTATIC_PACKAGES, then set PACK_LIBS
268 # to where your external packages exist. If dynamically linked or
269 # if you are building with NO_PACKAGES, leave PACK_LIBS empty.
270 #
271 PACK_LIBS = ../../../base/generic/archive/libpackages.a
272 #PACK_LIBS =
273
274 # The default behavor is to have packages, so if you don't want
275 # packages, you have to uncomment the following line
276 #HAVE_PACKAGES = -DNO_PACKAGES
277
278
279 ####>>> SHARED OBJECTS <<<##################################################
280
281 # When using dynamic packages or no packages, the Makefile needs
282 # to know how to make a shared object and what suffix the
283 # shared object should have.
284 #
285 # Library file(s) to link against for dynamic loading to work
286 DL_LIBS = @DL_LIBS@
287 #
288 # Flags to pass to the C compiler when linking object files
289 # into an executable application binary
290 LD_FLAGS = @LD_FLAGS@
291 #
292 # Flags to pass to ld to tell the run-time linker where to find
293 # shared objects
294 LD_SEARCH_FLAGS = @LD_SEARCH_FLAGS@
295 #
296 # Flags to pass to the C compiler when compiling the components
297 # of a shared library
298 SHLIB_CFLAGS = @SHLIB_CFLAGS@
299 #
300 # Base command to use to combing object files into a shared library
301 SHLIB_LD = @SHLIB_LD@
302 #
303 # Dependent libraries for the linker to scan when creating a shared
304 # library
305 SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
306 #
307 # Suffix to use for the names of dynamically loadable objects.
308 SHLIB_SUFFIX = @SHLIB_SUFFIX@
309 #
310 # Specifies everything that comes after libfoo in the shared library
311 # "foo"
312 ASC_LIB_SUFFIX = @ASC_LIB_SUFFIX@
313
314
315 ####>>> F77 <<<#############################################################
316
317 # F77
318 # your f77 compiler
319 #
320 F77 = @F77@
321
322 # Fortran compilation flags:
323 # These are used for making the ASCEND libraries based on FORTRAN codes.
324 # These should be set to get the best performance possible out of your
325 # f77 compiler without optimizing away functions that are not obviously
326 # called, as some compilers do by default.
327 #
328 F77FLAGS = -I4 -O
329 #
330 # F77LIBS is for the base f77 libraries. If you are linking no f77
331 # objects to ascend, it may be left undefined.
332 # Set F77LIBS appropriate for your machine and desired loader behavior.
333 #
334 F77_LIBS = @F77LIBS@
335 #
336 # F77_OPTS are for miscellaneous options, such as -tmpdir=
337 #
338 F77_OPTS =
339 #
340 # All the flags to pass to F77
341 #
342 F77_SWITCHES = $(F77FLAGS) $(F77_OPTS)
343
344 ####>>> FORTRAN LIBRARIES <<<###############################################
345
346 # If building ASCEND with MINOS or other FORTRAN based solvers/packages,
347 # uncomment one of the FOR_LIBS definitions below to indicate the FORTRAN
348 # libraries to link into ASCEND.
349 #
350 # Set the BLAS and LINPACK library definitions to point at
351 # machine specific libraries (if you have them) to get the
352 # best speed out of ASCEND.
353 #
354 BLASLIB = @BLASLIB@
355 LPAKLIB = @LPAKLIB@
356
357 FOR_LIBS = $(LSODLIB) $(MINOSLIB) $(OPTSQPLIB) $(CONOPTLIB) \
358 $(LPAKLIB) $(BLASLIB) \
359 $(F77_LIBS)
360
361
362 ####>>> INSTALL <<<#########################################################
363
364 # Location to install program, libs, etc, and the install program
365
366 # First, set INSTALL to the location of a BSD-compatible install program
367 #
368 INSTALL = @INSTALL@
369 INSTALL_PROGRAM = @INSTALL_PROGRAM@
370 INSTALL_DATA = @INSTALL_DATA@
371
372 # Where to install information
373 #
374 # prefix for platform dependent files:
375 exec_prefix = @exec_prefix@
376 #
377 # prefix for platfrom independent files (.h, .tcl, .asc, etc)
378 prefix = @prefix@
379 #
380 # directory for ascend binary
381 BIN_DIR = $(exec_prefix)/bin
382 #
383 # directory for ascend scripts
384 SCRIPT_DIR = $(prefix)/bin
385 #
386 # directory for ascend documentation
387 DOC_DIR = $(prefix)/doc
388 #
389 # directory for ascend include files
390 INCLUDE_DIR = $(prefix)/include
391 #
392 # directory for ascend info-style files
393 INFO_DIR = $(prefix)/info
394 #
395 # directory for ascend platform-dependent libraries
396 LIB_DIR = $(exec_prefix)/lib
397 #
398 # top level directory for ascend man pages
399 MAN_DIR = $(prefix)/man
400 #
401 # directories for specific man pages
402 MAN1_DIR = $(MAN_DIR)/man1
403 MAN3_DIR = $(MAN_DIR)/man3
404 MAN5_DIR = $(MAN_DIR)/man5
405 MAN8_DIR = $(MAN_DIR)/man8
406 MANn_DIR = $(MAN_DIR)/mann
407 #
408 # directory for ascend help files
409 HELP_DIR = $(prefix)/help
410 #
411 # directory for ascend models (libraries & examples)
412 MODELS_DIR = $(prefix)/models
413 #
414 # directory for ascend package code
415 PACK_DIR = $(prefix)/packages
416 #
417 # directory for general tcl/tk code
418 TK_LIBRARY_DIR = $(prefix)/lib/tcl
419 #
420 # directory for ascend specific tcl/tk code
421 ASCEND_TK_DIR = $(prefix)/TK
422
423
424 ####>>> CMU DEVELOPERS <<<##################################################
425
426 # The following flags control sources that are not part of the standard
427 # distribution. Do not uncomment any of these lines unless you know
428 # what you are doing; in particular, don't mess with these and then
429 # expect us to be able to help you when it won't build.
430
431 # Tom Epperly's malloc debugger:
432 #
433 # slow
434 #MOD_ASCMALLOC = -DMOD_ASCMALLOC -DMALLOC_DEBUG
435 # slower
436 #MOD_ASCMALLOC = -DMOD_ASCMALLOC -DMALLOC_DEBUG -DALLOCATED_TESTS
437
438 # Damned expensive malloc debugger (sources not distributed):
439 #
440 # slowest
441 #DEBUG_MALLOC_LIBS = ../dbmalloc/libdbmalloc.a
442 #DEBUG_MALLOC = -DBEBUG_MALLOC
443
444 # Find Dependencies: makedepend/g++dep executable
445 #
446 # all dependencies
447 DEPEND = /usr/local/bin/makedepend
448 DEPEND = /usr/local/lib/ascend/etc/g++dep
449 #
450 # all but system dependencies
451 DEPEND_NOSYS = /usr/local/lib/ascend/etc/g++dep_nosys
452 # to make without-system-dependencies the default, uncomment the next line
453 #DEPEND = $(DEPEND_NOSYS)
454 #
455 # remove dependencies information version
456 DEPEND_RM = /usr/local/lib/ascend/etc/g++nodep
457 #
458 # All switches to pass to the dependency generator
459 #
460 DEPEND_FLAGS = $(INCLUDES) $(DEFINES)
461
462
463 # Tags
464 #
465 ETAGS = /usr/local/bin/etags
466 CTAGS = /usr/local/bin/ctags
467
468
469 # cflow, sparc only. on other platforms cflow and dot, if they exist,
470 # may need different switches. dot works well on sun/solaris/hpux OS.
471 # with a bit of hacking on usr/local/lib/ascend we could have dot on
472 # all but alphas since Ben has the sources. Finding cflow may be harder.
473 CFLFLAGS = -DNDEBUG -I.. -I.
474 RCFLFLAGS = -DNDEBUG -I.. -I. -r
475
476 # replaces tabs with 2 blanks for human consumption, and eat externals
477 #CPRCOM = |/usr/5bin/pr -e2 -t | eatcflowext
478 # eat external function calls (fprintf, etc) only
479 CPRCOM = | eatcflowext
480
481 # eat external calls and convert to dot input format
482 CPSCOM = | eatcflowext | eatcflow2dot
483
484 # note sunos4 /bin/cflow is fatally stupid. use sys5 version
485 CFLOW = /usr/lang/cflow
486 # you probably don't have this. It's in my path (~ballan/bin/dot)
487 # dot can be stunningly slow on twisty files.
488 DOT = dot
489 # can also generate mif (-Tmif), etc. see dot man page.
490 DOTFLAGS = -Tps
491 # eatcflowext,eatcflow2dot are tcl script ben wrote. vagu:~ballan/bin
492 # dot is the proprietary lucent graph utility.
493
494
495 # Purify
496 #
497 PURIFY = purify
498 QUANTIFY = quantify
499 #set dirs in the next 3 accordingly
500 PURIFY_OPTS = -always-use-cache-dir -cache-dir=/usr1/ballan/tmp/purify \
501 -windows=no -inuse-at-exit=yes
502 PURIFY_OPTS = -always-use-cache-dir -cache-dir=/usr1/ballan/tmp/purify \
503 -inuse-at-exit=yes
504 QUANTIFY_OPTS = $(PURIFY_OPTS) -record-system-calls=no
505 # use these if you haven't paid pureatria yet.
506 PURIFY_OPTS =
507 QUANTIFY_OPTS = $(PURIFY_OPTS)
508
509
510 # Pixie
511 # (only available on the alpha)
512 #
513 PIXIE = pixie
514 PIXIE_OPTS = -pixie -heavy -lines -invocations -procedures
515 PIXIEDIR= a4
516
517
518 # set the following to -DCHRIS_FUNC to get the extra fucn properties
519 # needed for the Chris Welhelmy solver.
520 #
521 #FATFUNC = -DCHRIS_FUNC
522
523
524 # if your machine's memory is allocated in decreasing order, set the
525 # following to -DMEM_DECREASE to try to keep memory usage more compact
526 #
527 #MEM_DECREASE = -DMEM_DECREASE
528
529
530 ####>>> MISC <<<############################################################
531
532 # include files for ascend
533 #
534 #AWW: See comments in configure.in just before asc_include is set. I am
535 #AWW: not sure why -I@asc_include@ is here, but I know the others are
536 #AWW: needed - based on those comments.
537 #AWW20041206: ASC_INCS = -I@asc_include@ -I..
538 ASC_INCS = -I@asc_include@ -I.. -I../../../tcltk98/generic -I../../../base/generic
539
540 # library files for ascend
541 #
542 #AWW20041206: ASC_LIBS = ../archive/libascif.a ../archive/libasc.a ../archive/libsolver.a \
543 #AWW20041206: ../archive/libutils.a ../archive/libgeneral.a $(PACK_LIBS)
544 ASC_LIBS = ../../../base/generic/archive/libascif.a \
545 ../../../base/generic/archive/libasc.a \
546 ../../../base/generic/archive/libsolver.a\
547 ../../../base/generic/archive/libutils.a \
548 ../../../base/generic/archive/libgeneral.a $(PACK_LIBS)
549 # The time/place stamp for the executable.
550 # Reverse the comment flags if your cpp doesn't understand it
551 #
552 TIMESTAMP = -DTIMESTAMP="\"by `whoami`@`hostname`\""
553 #TIMESTAMP = -DTIMESTAMP="\"\""
554
555 # Force emacs to treat this file as a Makefile
556 #
557 # Local Variables: ***
558 # mode:Makefile ***
559 # End: ***

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