summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
Commit message (Collapse)AuthorAgeFilesLines
...
* makefile: force regeneration of compflag.h and build.h on revision changeSteven Noonan2009-10-191-3/+7
| | | | | | | | The build.h and compflag.h files stayed around regardless of whether or not they were dependencies of the .INTERMEDIATE pseudo-target. This led to stale headers. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: move compflag.h target closer to build.h targetSteven Noonan2009-10-191-6/+4
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* compflag.h: generate via perl script instead of shellSteven Noonan2009-10-191-16/+3
| | | | | | | Some platforms broke because they used /bin/sh, which doesn't have the '-n' parameter for 'echo'. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: cosmetic fixSteven Noonan2009-10-191-3/+3
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* mingw-cross: eliminate need to override uname_S on make command lineSteven Noonan2009-10-191-0/+8
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* win32: eliminate need for WIN32TILES/WIN32CONSOLE macrosSteven Noonan2009-10-191-8/+0
| | | | | | | | | | | | | | Instead of defined(WIN32CONSOLE) we should use: defined(TARGET_OS_WINDOWS) && !defined(USE_TILE) As well as replace defined(WIN32TILES) with: defined(TARGET_OS_WINDOWS) && defined(USE_TILE) Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: try to use full gcc compiler name when possibleSteven Noonan2009-10-191-5/+22
| | | | | | This assists both distcc and ccache in doing their jobs properly. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: fix doublequote escaping for compflag.hSteven Noonan2009-10-191-5/+5
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: correct dependencies to always generate build.h and compflag.hSteven Noonan2009-10-181-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: remove 'compile-flags' target/dependencyMatthew Cline2009-10-181-1/+1
|
* Merge branch 'master' of ↵Matthew Cline2009-10-181-25/+15
|\ | | | | | | ssh://zelgadis@crawl-ref.git.sourceforge.net/gitroot/crawl-ref/crawl-ref
| * makefile: don't use intermediate .compflag.h fileSteven Noonan2009-10-181-25/+15
| | | | | | | | | | | | | | | | It's not necessary, because the compflag.h header will never exist, because the makefile has it marked as an .INTERMEDIATE, which means it's deleted automatically if the build is cancelled or finishes. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* | makefile: EXTERNAL_FLAGS_L and EXTERNAL_FLAGSMatthew Cline2009-10-181-2/+2
|/ | | | | Split makefile variable EXTERNAL_FLAGS into EXTERNAL_FLAGS_L and EXTERNAL_FLAGS, which apply to CFOTHERS_L and CFOTHERS respectively.
* Add compilation information to Version namespaceMatthew Cline2009-10-181-4/+31
| | | | | | | | | | The Version namespace now provides the compiler which was used, the OS, machine type and processor type the compilation was done on, and the CFLAGS, CFLAGS_L and LDFLAGS which were used. If GCC was the compiler, it also provides the compiler version. This information is included in crash reports, and can be dumped using the new command line option "-version".
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+9
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* gcc-gte.pl: use 1/0 instead of Yes/NoSteven Noonan2009-10-181-3/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* AUTO_OPT: add a bit of flexibility for future porting, Mac OS X supportSteven Noonan2009-10-181-20/+19
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: Automatically optimize for your machineMatthew Cline2009-10-171-3/+22
| | | | | | | | | Setting the makefile variable AUTO_OPT_GCC will give GCC a list of optimization flags suited for the machine make is run on. It does this using util/auto-opt.sh. "-march=native -mtune=native" are always outputted, which causes GCC to detect the CPU type you use and generate code for that. On Linux systems it also looks at the flags line of /proc/cpuinfo to pick x86 optimization flags.
* makefile: add option for static linkingSteven Noonan2009-10-171-0/+4
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: don't use the system's sdl-config on a cross-compileSteven Noonan2009-10-171-0/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: export CONFIGURE_FLAGS variableSteven Noonan2009-10-171-0/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: add -Wno-uninitialized on < GCC 4.0Steven Noonan2009-10-171-1/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: basic cross-compilation supportSteven Noonan2009-10-171-0/+13
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* INSTALL.txt: updated to reflect current build systemSteven Noonan2009-10-161-80/+75
| | | | | | | The Cygwin section might not be entirely accurate yet (and I haven't personally verified the DOS instructions), but most of this is now correct. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: cleaning up, improving readibility and speedSteven Noonan2009-10-161-122/+81
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: fix to specifically reference the self-built libSteven Noonan2009-10-161-3/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefiles & contribs: add support for MinGW tiles buildsSteven Noonan2009-10-161-74/+79
| | | | | | | | | Incredibly hairy to get this to work, largely because MinGW's GCC is picky about the link order, among other things. But now we have a working build! Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: add 'REPORT' flag, for compile time profilingSteven Noonan2009-10-161-1/+5
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: New targets clean-pcre and clean-contribMatthew Cline2009-10-151-2/+8
| | | | | Added clean target for pcre "clean-pcre", and a target to clean out all contrib subdirs, "clean-contrib"
* contribs: moved to contribs dir, added as submodulesSteven Noonan2009-10-141-9/+24
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: fix warning flag order and contentsSteven Noonan2009-10-141-2/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: detect if GCC is >= 4.3.0 before adding -Wno-array-boundsSteven Noonan2009-10-141-1/+8
| | | | | | | GCC versions less than 4.3.0 had a compiler error because the -Wno-array-bounds flag wasn't valid. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefiles: 'clean'/'distclean' now do RM on all intermediates at onceSteven Noonan2009-10-141-15/+7
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: stomp stupid "ignoring return value of 'int foo()', declared with ↵Steven Noonan2009-10-141-1/+1
| | | | | | attribute warn_unused_result" warnings Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: disable stupid "array subscript is above array bounds" errorsSteven Noonan2009-10-141-1/+1
| | | | | | | They're pretty much never accurate, and they're hard to avoid because of how they're raised. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: add USE_PCRE option to force usage of PCRE for regexSteven Noonan2009-10-141-3/+11
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: include DEFINES_L in CFLAGS_LSteven Noonan2009-10-131-1/+1
| | | | | | Not sure how this slipped through the cracks... Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: move USE_ICC conditional to avoid CFWARN changesSteven Noonan2009-10-131-16/+12
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: disable some annoying ICC warningsSteven Noonan2009-10-131-1/+3
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: add ICC support through use of USE_ICC=y flagSteven Noonan2009-10-131-2/+17
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: fix dependencies for levcomp.lex.ccSteven Noonan2009-10-121-1/+1
| | | | | | | | | | | | | | | | | | It was occasionally possible that levcomp.lex.cc was compiled before levcomp.tab.cc was generated, causing this build error: YACC levcomp.tab.c LEX levcomp.lex.cc CXX util/levcomp.lex.o levcomp.lpp:13:25: error: levcomp.tab.h: No such file or directory CXX util/levcomp.tab.o levcomp.lpp: In function 'void clean()': Adding levcomp.tab.cc as a dependency of levcomp.lex.cc fixes the issue. Reported-by: Robert Vollmert <rvollmert@gmx.net> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: add example CFOPTIMIZE flags for Intel's compilerSteven Noonan2009-10-121-0/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* * Add -DDEBUG to DEFINES when DEBUG is set.Matthew Cline2009-10-121-1/+2
| | | | | | * Add variable EXTERNAL_FLAGS, for setting compiler flags from the make command line. Trying to do this with EXTRA_FLAGS clobbers the makefile's changes to EXTRA_FLAGS, like adding "-ggdb".
* makefile: move WIN32TILES and WIN32CONSOLE macros to local listSteven Noonan2009-10-121-2/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: disable architecture-specific optimizationsSteven Noonan2009-10-121-1/+3
| | | | | | | I intended to set up some good defaults, and unfortunately added ones that would break on non-Intel machines. Whoops. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefiles: set up global vs. local cflags, optimize sqlite buildSteven Noonan2009-10-121-31/+56
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: kill annoying 'Wuninitialized not supported without -O' warningSteven Noonan2009-10-121-0/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: don't rebuild the makefile.dep with clean or distclean targetsSteven Noonan2009-10-121-0/+4
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefile: fix build on Mac OS X when APPLE_GCC=nSteven Noonan2009-10-121-3/+5
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefiles: add APPLE_GCC option, to enable or disable use of Apple's GCCSteven Noonan2009-10-121-17/+31
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>