summaryrefslogtreecommitdiff
path: root/lib/make/make.config.rules.in
Commit message (Collapse)AuthorAge
* Spelling correction.goodale2001-06-20
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2244 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing name used to replace __FORTRANFILE__ to F77 for F77 files.goodale2001-04-16
| | | | | | | | | Should fix PR582. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2117 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus/569allen2001-04-14
| | | | | | | | Don't use C preprocessor to find dependencies of fortran files with .f, .f90, .f77 extensions. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2111 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Activate output of source file name preprocessor directive to preprocessedgoodale2001-01-14
| | | | | | | | | | | | | | | c and c++ source files, as per c_file_processor 1.15. This allows __FILE__ directives to work, and also allows the compiler to point to the c source file for warning/error messages. If this gives problems on any architecture it will need to be removed. You need to do a make <config>-config to activate this. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1992 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add F90_SUFFIX make variable for freeformat f90 suffix. This shouldgoodale2000-12-17
| | | | | | | | | help with PR 224. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1962 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed Cactus/302allen2000-04-16
| | | | | | | (Treatment of free format fortran) git-svn-id: http://svn.cactuscode.org/flesh/trunk@1543 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Addedgoodale2000-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | C_POSTPROCESSING CXX_POSTPROCESSING F77_POSTPROCESSING F_POSTPROCESSING F90_POSTPROCESSING as things a known-architecture can set. This allows object files to be moved and things like that. Also added the ability of the architecture files to write to a file calles make.arch.defn which is included at the bottom of make.code.defn. Thus, for example, an architecture requiring mpicc and its ilk for compiling with MPI can replace the compilers at this point, but still allow the rest of the configuration to use the normal compiler. Use with caution. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1438 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added yet another thing which can be set by the known-architecture stuff:goodale2000-03-06
| | | | | | | | | | | | | | | | | | | | | | | | CXX_WORKING_NAME this defaults to the working name being the filename without the directory info, but can be used to give the file generated after preprocessing a different name. E.g. if your machine requires C++ files to end with .C you should be able to do CXX_WORKING_NAME='$(notdir $<).C to solve the problem. At some point we're going to have to go through all these obscure flags and decide on nice names and what functionality they really should have. For instance the above could also have been done by introducing CXX_SUFFIX which would of course be easier for the end-user, but might in some circumstances be less useful. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1420 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing flags which were repeated for OPTIMISE and DEBUGallen2000-03-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1412 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
* Merged in Erik's free-format f90 stuff. Until we have a standardgoodale1999-11-24
| | | | | | | | | | | | | | thorn with free-format f90 in it this is not guaranteed to work on all platforms. Thanks for doing this Erik. Tidied up the f_file_processor to some extent added grdoc stuff to it, and made the formatting consistent with the rest of the perl in the CCTK. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1168 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Attempt to exclude certain files from the dependency lists to preventgoodale1999-11-04
| | | | | | | | | | | excessive recompilation when the thornlist is changed. Tested under Linux. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1134 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Escape double quotes around filenameallen1999-11-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1124 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use Perl rather than sed to do some substitutions for Fortran files.goodale1999-10-26
| | | | | | | | | Fixes Compiler/140. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1108 17b73243-c579-4c4c-a9d2-2d5706c11dac
* The dependency fixer uses perl inline editing. This doesn't workgoodale1999-10-20
| | | | | | | | | under NT, so need to create a backup file and then delete it. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1072 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Support for .cpp and .cxx extensions for C++ . This hasn't been tested.goodale1999-10-20
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1069 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix for PR 118 - dependencies should (I hope) work properly now.goodale1999-10-07
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1011 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix to the dependencies. These were broken when we went togoodale1999-10-07
| | | | | | | | | names of the form bae.lang.o, etc. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1010 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change to allow files with the same basename but differnt languages to begoodale1999-09-10
| | | | | | | | | | | | | | | | | | | | | | allowed in a thorn. This also makes the names of the dependency files unique, so should also solve PR CCTK/75. You will need to do a <config>-config after this, or do cp lib/make/make.config.rules.in configs/<config>/config-data/make.config.rules in order for everything to work again. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@894 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Made apths to c_file processor relative to CCTK_HOME.goodale1999-09-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@867 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added simple support for compiling with DEBUG.jmasso1999-07-29
| | | | | | | | | | | | | | | It follows the way MPI was added with "extras". So, to make a configuration be compiled with debug, say make DEBUG=ALL <configname> if fact, now you could say DEBUG=whatevershiticomeup and it's going to work the same... but we will add DEBUG=FORTRAN,C,ALL etc... support in the future. - Joan git-svn-id: http://svn.cactuscode.org/flesh/trunk@810 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added preprocessing (copying) treatment for .f and .f77 files.allen1999-07-22
| | | | | | | This needs to be tidied some. git-svn-id: http://svn.cactuscode.org/flesh/trunk@766 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added F_DEPEND and F77_DEPEND for consistency with C and CXX.goodale1999-07-15
| | | | | | | | | | | | Added {C,CXX,F,F77}_DEPEND_OUT for the end of dependency rules - i.e. it contains > $@ by default, but on architectures where the dependency info is generated in more complicated ways, such as the Exemplar or AIX it can be something more long-winded. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@712 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed bug in F77 compilation rule. Thanks Ryoji for finding this.goodale1999-07-06
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@678 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added a bit of postprocessing for fortran files, to replace __FORTRANFILE__allen1999-07-03
| | | | | | | | | | with the name of the file. I wanted to do this in f_file_processor.pl, but I don't know the filename. Anyone know a better way to do this? git-svn-id: http://svn.cactuscode.org/flesh/trunk@620 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Latest changes for the NT. Still fails at linking, but this isgoodale1999-06-28
| | | | | | | | due to unresolved symbols rather than the command line syntax being wrong. git-svn-id: http://svn.cactuscode.org/flesh/trunk@599 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Lots more changes to get things working under NT.goodale1999-06-25
| | | | | | | | | | Almost there. Everything seems to compile, modulo a problem I just spotted, with only the final linking remaining. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@589 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use $(CXX) instead of $(CC) to create dependencies for *.cc and *.C filestradke1999-06-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@549 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Most compilers use -c -o for compile only and put object file in agoodale1999-04-08
| | | | | | | | | | | particular place, but some don't. Now the options are held in make variables, and a known-architectures, or setup options script can set these appropriately. Currently they default to -c -o . Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@457 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed configuration stuff to find the standalone CPP.goodale1999-04-06
| | | | | | | | | | | Now use CPP to get deps for all non-c/c++ files, and for all other non-dep stuff, and CC for deps for c/c++ files. This should (hopefully) now work without tweaking on all architectures. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@438 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added an extra comment to point out the reason why we cd to a scratchgoodale1999-03-25
| | | | | | | | | directory before building every file. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@421 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Some preprocessors remove C++ comments which start //allen1999-03-24
| | | | | | | | | | | | // means concatonate in fortran Added lines to replace // in fortran before preprocessing with another string and put it back after preprocessing Gab. git-svn-id: http://svn.cactuscode.org/flesh/trunk@416 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Preprocessed f90 files get a lowercase f.goodale1999-02-16
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@288 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed passing of -D flags to fortran compilation, as this stuff is onlygoodale1999-02-16
| | | | | | | | | | needed for the preprocessing stage, and the pacific compiler under Linux doesn't like it. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@285 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added rules for C++ files with .C extensions, and fortran files withgoodale1999-02-12
| | | | | | | | | lowercase .f or .f77 . Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@238 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Created make variables for the perl scripts - these variables are rungoodale1999-02-06
| | | | | | | | | | through sed to convert names beginning with, say, //d/foo to d:/foo to allow compilation under cygwin. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@213 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed preprocessing for f77 files, changed some CCODEs to FCODEs inallen1999-02-03
| | | | | | | | the compile lines, although this shouldn't matter ... perhaps these and the rest of the defines shouldn't be there? git-svn-id: http://svn.cactuscode.org/flesh/trunk@198 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed problems with fortran with preprocessingallen1999-01-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@153 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Send output of preprocessor through the f_file_processor for fortran files.goodale1999-01-22
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@116 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Preprocesses c++ and fortran files in the same way as c files.goodale1999-01-22
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@109 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now preprocesses c files into the appropriate build directory, thengoodale1999-01-22
| | | | | | | | | | | | | changes directory to $(TOP)/scratch and builds the file there, putting the object file in the appropriate build directory. When this is done for F90 it should mkae sure that all module files end up in one place and are available for the F90 compiler. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@107 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added dependencies for the source files.goodale1999-01-22
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@105 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now passes through defines to the preprocessor to allow the parameters to work.goodale1999-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | Now all you need to do is #include "config.h" and #include "cctk_parameters.h" at the top of your c source file, and then state DECLARE_PARSER at the top of any subroutine where you want to use the parameters. Note that the flesh should use the getparameter subroutine, rather than this method, otherwise it may need to be recompiled whenever someone adds a public parameter. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@104 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New make system.goodale1999-01-17
To build a configuration <conf> do make <conf> if <conf> doesn't exist you'll get a complaint make by itself will list existing configurations, or run the setup perl script if there are none. make config will make a new configuration make help should list all options make tags will create a Vi style tags file make TAGS will create an Emacs style TAGS file make distclean will nuke your build directory. When setting up a configuration the make system creates the following directories $(CCTK_HOME)/build $(CCTK_HOME)/build/$(config) $(CCTK_HOME)/build/$(config)/config-data $(CCTK_HOME)/build/$(config)/lib $(CCTK_HOME)/build/$(config)/build and runs autoconf in the config-data directory. You then need to create a file make.thornlist containing one line of the form THORNS=toolkit1/thorn1 toolkit3/thorn45 ... in the config-data directory. (This will be automatically created from ActiveThorns later.) At that point you should be fine for making the system. Note that it doesn't preprocess the files yet, nor in fact touch any of the ccl scripts. This is coming to a make system near you soon... Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@62 17b73243-c579-4c4c-a9d2-2d5706c11dac