summaryrefslogtreecommitdiff
path: root/lib/make/make.configuration
Commit message (Collapse)AuthorAge
* Use CPPFLAGS as well for the final link stage, since the fileschnetter2008-01-25
| | | | | | | datestamp.c is actually compiled at that time. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4452 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow thorns to call make.configuration recursively from theirschnetter2007-08-22
| | | | | | | | | | | | make.configuration.deps. For this, thorns have to specify a make goal with a suffix ".custom". If the make goal has the suffix ".custom", then include the thorn list definition make.thornlist. This is identical to what happens for the "utils" and "build" make goals. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4427 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Build a configuration in two steps: First create make.thornlib, thenschnetter2007-05-21
| | | | | | | | build all thorns. This seems to make "make" honour the "-j" options when building the thorns. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4420 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When compiling src/datestamp.c, pass in as a preprocessor define the currenttradke2006-07-28
| | | | | | | | data/time as returned by /bin/date in possibly ISO 8601 compliant format. This datetime stamp will be used by the new flesh routine CCTK_CompileDateTime(). git-svn-id: http://svn.cactuscode.org/flesh/trunk@4357 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add a new configuration flag PROFILE=yes, which enables profiling in aschnetter2006-06-23
| | | | | | | | | | | | | | | | | | | build. This flag is equivalent to OPTIMISE=yes and DEBUG=yes. Additional compiler options {C,CXX,F77,F90}_PROFILE_FLAGS are also introduced. The configuration stage sets the F77 flags to the F90 flags if an F90 compiler is found. This flag setting was done too early, namely before the default values for the F90 flags were set. This flag setting has been moved to a later time. The link command used undefined make variables $(OPTIMISE_C) etc. These variables have been removed. Instead $(CXX_OPTIMISE_FLAGS) etc. are added to the link statement. This makes the linker pick up the correct flags e.g. for profiling. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4327 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Move the inclusion of bindings/Configuration/make.link from make.configurationtradke2006-03-09
| | | | | | | | | | | up into make.config.defn so that the latter file has a chance of appending necessary system libs to the linker command line. This applies patch http://www.cactuscode.org/old/pipermail/patches/2006-March/000156.html with a slight modification: the make.link file is included directly in make.config.defn, not in make.extra.defn (as proposed in the original patch). git-svn-id: http://svn.cactuscode.org/flesh/trunk@4268 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Create the scratch directories in the configurations when theschnetter2005-09-26
| | | | | | | | | configuration is created, not when it is built. This allows make to examine this directory for dependencies. (Make refuses to examine non-existing directories.) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4148 17b73243-c579-4c4c-a9d2-2d5706c11dac
* For "make clean", remove the complete scratch directory instead ofschnetter2005-08-21
| | | | | | | | just its contents. This avoids problems if there are so many files in there that the shell glob "scratch/*" cannot be expanded any more. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4110 17b73243-c579-4c4c-a9d2-2d5706c11dac
* configuration.ccl fix. Please test and report if anything breaksyye002005-08-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4109 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Undo last commit totradke2005-03-08
| | | | | | | | | make/make.configuration sbin/CreateConfigurationBindings.pl because it broke compiling of capability-requiring thorns (eg. CactusIO/IOSDF). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3998 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Patch from Yaakoub to fix some problems with configuration.ccl stuffgoodale2005-03-04
| | | | | | | | | and reorganise directories. Note the patch to CreateConfigurationBindings.pl is from 1.3 of that file, and, hopefully, fixes the same problems that 1.4 did. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3997 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When building utility programs, include makefile definitions generatedtradke2004-12-21
| | | | | | | from a thorn's configuration.ccl. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3942 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make cactus thorn lib names less likely to clash with system namesgoodale2004-11-30
| | | | | | | by prefixing - currently use thorn_ for nostalgie reasons 8-) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3921 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing some strange lines and some lines scheduled for removal in beta16.goodale2004-11-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3911 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed to using the cygwin version of Perl under cygwin. This hasgoodale2004-05-19
| | | | | | | | | | | | | | | | | | | | | | | | | | the translation of CCTK_HOME to a windows format from the master Makefile, and forced the addition of a new Make macro TRANSLATE_DIRS which is used in various places in Make to translate things like /cygwin/f/... into f:\... This is a 'call'able macro in Make, and defaults to $(1). There is a new subroutine in RunTestUtils which serves the same purpose. This change should not affect anyone not using Cactus on Windows. If you are using Windows you will need to reconfigure, making sure that the Perl you use is the cygwin one and not the ActiveState one. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3742 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed path to a thorn's bindings Configuration make.configuration.deps file.tradke2004-05-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3734 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Print a warning message if the user specified a configuration option attradke2004-05-06
| | | | | | | | compile time. This closes PR Compiler/1669: "Should deal with inappropriate make command-line options". git-svn-id: http://svn.cactuscode.org/flesh/trunk@3695 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check whether thorn names clash with system library names.schnetter2004-04-09
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3651 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use correct perl interpreter when running c_file_processor from the CSTgoodale2004-03-27
| | | | | | | | | to generate the parameter structure names. In the future we should be able to do this without forking off another interpreter, but this is necessary for now. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3609 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implementation of configuration.ccl spec from Yaakoub Y El-Khamra.goodale2004-03-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3602 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Do not abort making a thorn when the scratch or build directories hadschnetter2004-01-20
| | | | | | | to be created git-svn-id: http://svn.cactuscode.org/flesh/trunk@3545 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Abort the build when there is an errorschnetter2004-01-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3537 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix dependency generationschnetter2004-01-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3535 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cosmetic change.schnetter2004-01-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3496 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Output the dividers during the build stage after each step instead before,schnetter2003-10-13
| | | | | | | | so that they are printed before make checks the dependencies, which can take quite some time. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3429 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implemented Cactus/1413allen2003-02-27
| | | | | | | | | Erik Schnetters suggestion to have a file which can be updated to force rebuilds when e.g. the CST perl scripts are changed. Unfortunately, this now means that everyones configurations need to be rebuilt. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3156 17b73243-c579-4c4c-a9d2-2d5706c11dac
* cleandeps only removes dependency files in the configuration build directoryallen2002-08-21
| | | | | | | Closes Cactus/1138 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2984 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed obselete method of setting THORN_LINKLIST.rideout2002-07-11
| | | | | | | Clarified make.thornlist comment. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2928 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added make target '-build' to be used astradke2002-01-03
| | | | | | | | | | | | | | | make <configuration>-build BUILDLIST=<space-separated list of thorns, without arrangements prefixes> This would only build all libs for BUILDLIST which must be a subset of the thorns of the given configuration. This new target is only experimental so far (and thus won't be documented). It might be removed again if the functionality can be provided by the default build rules. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2568 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Protect 'mkdir $(BUILD_DIR)' against race conditions during a parallel make.tradke2001-12-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2483 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed an unneccessary 'sleep 3' when creating the scratch dir.tradke2001-12-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2479 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Protect 'mkdir scratchdir' against concurrent invocations from parallel makes.tradke2001-12-03
| | | | | | | This closes Cactus/441. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2476 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Tidying output with dividersallen2001-09-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2362 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Report the Cactus version at the top of the output of every gmake command ↵allen2001-09-14
| | | | | | | | | where it makes sense. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2359 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use the new thornlib linklist for the Cactus linker commandline.tradke2001-07-11
| | | | | | | | You need to also update lib/sbin/CST and then rebuild your configuration in order to use the new liblist. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2284 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed so that make.subdir is used for building all user-supplied files.goodale2001-05-09
| | | | | | | | | | Optimised a bit so libs and executable are only rebuilt if a source file/header has really changed. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2158 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed space between '-I' option and the following include path.tradke2001-01-17
| | | | | | | Now the native compiler on OSF5 can compile datestamp.c. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1997 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove contents of scratch directory for gmake realclean, clean, and cleanobjsallen2001-01-12
| | | | | | | Fixes Cactus/510 git-svn-id: http://svn.cactuscode.org/flesh/trunk@1986 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Tidied up the versioning stuff a bit.goodale2000-12-15
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1954 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added LIBNAME_PREFIX and LIBNAME_SUFFIX to allow libraries to be namedgoodale2000-10-31
| | | | | | | | | | | | | differently on some architectures (e.g. NT). Removed fallback definition for GENERAL_LIBRARIES in make.configuration, and added fallback definitions for LIBNAME_PREFIX and LIBNAME_SUFFIX so old configurations should still work. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1872 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Checks for configuration.ccl files.goodale2000-08-31
| | | | | | | | | | | Tries to give a sensible error action when a thorn which has previously been compiled in has been removed from its arrangement on disk. This fixes PR 349. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1805 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change a -e to a -r in testallen2000-07-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1785 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use override to reset the UTILS make variable.tradke2000-05-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1672 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Experimental support for agoodale2000-05-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <config>-utils compile option. Thorns can add targets of the form $(UTIL_DIR)$(DIRSEP)<utility> : deps commands to build and then in their make.configuration.defn put ALL_UTILS += <utility> then when someone does gmake <config>-utils that utility will be built. Or people can do gmake <config>-utils UTILS="util1 util2 util3" to get just a subset of utilities. Currently $(UTIL_DIR) is set to be exe/<config>, and utility building targets should have somewhere in them if ! -d $(UTIL_DIR) ; then $(MKDIR) $(MKDIRFLAGS) $(UTIL_DIR) ; fi to make sure it exists. Util building should also attempt to be in the appropriate thorn's build directory $(BUILD_DIR)$(DIRSEP)<thorn> so the target commands should probably be of the form cd $(BUILD_DIR)$(DIRSEP)<thorn> ; make -f <utility-makefile> $@ SRCDIR=<utility src dir> ... to keep the object files in one place. Or of course they could make a subdir of the thorn's build directory. As I said before this is experimental, so some features may change as we experiment with it. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1669 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing the -j flag from calls to sub-makes unless the TJOBS orgoodale2000-05-15
| | | | | | | | | | | FJOBS has been set. This resolves PR 351. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1664 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New option for gmakeallen2000-03-10
| | | | | | | | | | | | | | | | | | | | PROMPT=no using this at either configuration or compile time will run gmake until an executable is produced without giving further prompts. The default is PROMPT=yes This means that you can do gmake <config> THORNLIST=MyFavList PROMPT=no to get an executable. This is experimental at the moment, since I might change it so that PROMPT=no still requires you to do a separate configuation and compile step, and add a new option to run them together. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1454 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added configuration-time optionallen2000-02-19
| | | | | | | | | | | | | | | OPTIMISE=no to switch off optimisation flags for quicker compiling. The known architectures files can now contain C_OPTIMISE_FLAGS CXX_OPTIMISE_FLAGS F77_OPTIMISE_FLAGS F90_OPTIMISE_FLAGS git-svn-id: http://svn.cactuscode.org/flesh/trunk@1395 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added -editthorns to allow you to edit your thornlist.goodale1999-10-26
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1104 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cosmetic output change.goodale1999-09-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@953 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding a couple of MKDIRFLAGS that I had missedallen1999-09-09
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@891 17b73243-c579-4c4c-a9d2-2d5706c11dac