summaryrefslogtreecommitdiff
path: root/mk
Commit message (Collapse)AuthorAgeFilesLines
* [project @ 2001-10-24 09:43:47 by simonmar]simonmar2001-10-242-5/+11
| | | | | Detect whether the local 'ld' command supports -x, and only use the flag if it does.
* [project @ 2001-10-23 15:37:09 by rrt]rrt2001-10-231-23/+1
| | | | | Remove "Global option flags for utilities", as these are in config.mk, and should only be there (secundum SDM).
* [project @ 2001-10-23 14:45:32 by rrt]rrt2001-10-231-0/+1
| | | | List the values that can go in SGMLDocWays.
* [project @ 2001-10-23 14:41:12 by rrt]rrt2001-10-231-10/+8
| | | | | | Since you can only have one SGML_DOC per directory, may as well only have one INSTALL_SGML_DOC too. Remove the machinery for handling more than one.
* [project @ 2001-10-23 14:35:12 by rrt]rrt2001-10-231-0/+2
| | | | | When an SGML doc "foo" is built as HTML, touch "foo.html", so that the build system can tell it has been built.
* [project @ 2001-10-23 14:34:24 by rrt]rrt2001-10-231-13/+25
| | | | | | | | | | | | | | | | | Add rules for building and installing documentation. The story is as follows: GhcDocWays is set to a list of ways to build SGML docs (typically in build.mk; it defaults to empty). SGML_DOC = foo causes foo to be built for each way. SGML_INSTALL_DOCS are then installed for each way; INSTALL_DOCS are just taken as literal filenames. make install-docs causes documents to be installed. Also some other clearups: Use $(if ...) where a comment lamented its non-existence. Remove a comment about a "weird" use of exit which has vanished.
* [project @ 2001-10-23 13:29:54 by rrt]rrt2001-10-231-0/+5
| | | | | Add SGMLDocWays (to say which ways SGML docs should be built). Defaults to empty (hence no effect).
* [project @ 2001-10-13 20:46:24 by sof]sof2001-10-131-1/+1
| | | | In defn of CPP, include @CPPFLAGS@ on RHS.
* [project @ 2001-10-03 15:30:57 by rrt]rrt2001-10-031-1/+1
| | | | | | | | | | | | | | | | | | | Dear Sigbjorn, next time you turn an if...endif into an if...else..endif remember to check the sense of the test. Sometimes, it needs to be reversed (there was in this case a hint in the surrounding code). Love, Reuben.
* [project @ 2001-09-28 23:36:50 by sof]sof2001-09-281-4/+22
| | | | | | | | | | | | Provide finer-grained control for turning off mk/target.mk's 'all', 'boot' and 'install' rules. i.e., instead of having the variable NO_ALL_TARGETS control the defnition of rules for all three, NO_ALL_TARGET, NO_BOOT_TARGET, and NO_INSTALL_TARGET lets you individually control which ones you don't want. Sub-projects (GC and HDirect, for example) have the need to turn off the 'boot' rule, which is what motivated this change.
* [project @ 2001-09-25 18:08:47 by ken]ken2001-09-251-2/+2
| | | | | Pass the "-mieee" flag to gcc, so that we get IEEE floating-point. MERGE TO STABLE
* [project @ 2001-09-25 13:00:41 by simonmar]simonmar2001-09-251-2/+2
| | | | | | Fix the mangle rule since the definition of GHC_MANGLER changed MERGE TO STABLE
* [project @ 2001-09-24 11:46:01 by simonmar]simonmar2001-09-241-4/+4
| | | | Use $(LD) instead of hard-wired ld.
* [project @ 2001-09-24 11:45:44 by simonmar]simonmar2001-09-241-0/+1
| | | | Add LD = ld
* [project @ 2001-09-23 21:29:35 by ken]ken2001-09-231-3/+3
| | | | | | | We need to pass the -w flag to gcc when compilng *_stub.c files in addition to when compilng *.hc files. MERGE TO STABLE
* [project @ 2001-09-22 12:22:37 by ken]ken2001-09-221-1/+1
| | | | Well, GHCi doesn't work on the Alpha now, so don't even bother building it. MERGE TO STABLE
* [project @ 2001-09-08 21:42:07 by sof]sof2001-09-081-13/+6
| | | | | | | | Remove ugly special casing - if you want to turn off the default rule for GHCI_LIBRARY, set DONT_WANT_STD_GHCI_LIB_RULE to YES in your Makefile prior to including $(TOP)/mk/target.mk ghc/lib/std and hslibs/win32 both do this now on mingw32.
* [project @ 2001-09-04 18:29:20 by ken]ken2001-09-041-5/+10
| | | | | | | | | | | | | | | | | | | | | | | THIS CHANGE AFFECTS ALL OBJECT FILES COMPILED FROM HASKELL. Please say "make -C ghc/lib/std clean; make -C hslibs clean". This commit eliminates spurious warning messages when compiling on the Alpha. There are two kinds of spurious warning messages: (1) gcc: -noprefix_recognition: linker input file unused since linking not done This warning is because we pass the flag "-Xlinker -noprefix_recognition" to gcc. We remove this warning by no longer passing the flag to gcc, and by removing the reason we were passing the flag in the first place: __init_* is now renamed to __stginit_*. (2) .../includes/Regs.h: warning: call-clobbered register used for global register variable This warning and all other warnings except (1), we eliminate by passing the -w flag to gcc. MERGE TO STABLE BRANCH
* [project @ 2001-09-04 16:35:02 by sewardj]sewardj2001-09-041-2/+6
| | | | | Build system hacks to split HSwin32.o into two parts, so that it can be loaded into GHCi. Uses the same gruesome hacks as HSstd.o.
* [project @ 2001-09-02 10:40:34 by qrczak]qrczak2001-09-021-1/+1
| | | | Clean core, not *core (because of ext-core dirs).
* [project @ 2001-08-27 14:27:23 by apt]apt2001-08-271-0/+20
| | | | document 31-bit core output option settings
* [project @ 2001-08-20 13:18:17 by simonmar]simonmar2001-08-201-425/+457
| | | | Commit a new autoheader-generated version of this file.
* [project @ 2001-08-17 11:20:00 by rrt]rrt2001-08-171-0/+11
| | | | | Add rules for way "i" for maing libraries, so that a DLL rather than a .a gets built, and with al rather than ld.
* [project @ 2001-08-16 22:54:24 by sof]sof2001-08-162-3/+1
| | | | | | | | | | | | | | | Death to GHC_INCLUDE_DIR (well, almost). - mk/target.mk: get rid off the abomination of having SRC_CC_OPTS include GHC_INCLUDE_DIR and GHC_RUNTIME_DIR for all fptools/ projects. - mk/suffix.mk: %.pp suffix rule no longer hardwires in the use of GHC_INCLUDE_DIR; just $(CPP_OPTS). ==> If you want GHC_INCLUDE_DIR on the include path, better add it to SRC_CPP_OPTS (say) at the point where you need it (ghc/compiler/Makefile and ghc/lib/std/Makefile do this now). - wipe out the use of -I$(GHC_INCLUDE_DIR) in HC_OPTS in hslibs/; not needed. - hslibs/mk/boilerplate.mk still define GHC_{IO_}INCLUDE_DIR for the purpose of using it when compiling .c files. It should be possible to get rid off it by having CC=$(HC), but I haven't imposed that change (yet).
* [project @ 2001-08-16 14:35:52 by rrt]rrt2001-08-161-1/+1
| | | | Add -fruntime-types, which the ILX backend needs
* [project @ 2001-08-16 11:16:27 by rrt]rrt2001-08-161-3/+0
| | | | Remove WAY_i_* settings from user ways section
* [project @ 2001-08-15 12:20:51 by rrt]rrt2001-08-151-1/+11
| | | | Add way i for ILX, plus ILX2IL and ILASM
* [project @ 2001-08-15 09:22:19 by rrt]rrt2001-08-151-1/+4
| | | | Add ILX2IL_OPTS and ILASM_OPTS
* [project @ 2001-08-14 13:40:07 by sewardj]sewardj2001-08-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the story about POSIX headers in C compilation. Until now, all C code in the RTS and library cbits has by default been compiled with settings for POSIXness enabled, that is: #define _POSIX_SOURCE 1 #define _POSIX_C_SOURCE 199309L #define _ISOC9X_SOURCE If you wanted to negate this, you'd have to define NON_POSIX_SOURCE before including headers. This scheme has some bad effects: * It means that ccall-unfoldings exported via interfaces from a module compiled with -DNON_POSIX_SOURCE may not compile when imported into a module which does not -DNON_POSIX_SOURCE. * It overlaps with the feature tests we do with autoconf. * It seems to have caused borkage in the Solaris builds for some considerable period of time. The New Way is: * The default changes to not-being-in-Posix mode. * If you want to force a C file into Posix mode, #include as the **first** include the new file ghc/includes/PosixSource.h. Most of the RTS C sources have this include now. * NON_POSIX_SOURCE is almost totally expunged. Unfortunately we have to retain some vestiges of it in ghc/compiler so that modules compiled via C on Solaris using older compilers don't break.
* [project @ 2001-08-06 20:39:32 by sof]sof2001-08-061-1/+2
| | | | Make recent _hsc.c / cbits changes work (i.e., need to add . to the include path)
* [project @ 2001-08-05 00:25:41 by ken]ken2001-08-051-1/+1
| | | | | | Steps towards getting GHCi working on alpha-dec-osf3 -- Clean up ghci/ByteCodeItbls.lhs, and add code for generating a jump instruction on alpha.
* [project @ 2001-08-04 06:19:54 by ken]ken2001-08-041-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | NB: This commit renames some files. In each of your build directories, you will need to: rm -f ghc/compiler/prelude/primops.txt rm -f ghc/compiler/prelude/primops.i rm -f ghc/lib/std/PrelGHC.hi-boot lndir ../fptools # or wherever your CVS working directory is The change: Run PrelGHC.hi-boot through the preprocesor, as we already do primops.txt. This commit introduces a new prefix, ".pp", which means "run through preprocesor". In a previous commit, I changed ghc/compiler/Makefile to preprocess primops.txt into primops.i. That is gone now. We now preprocess primops.txt.pp (a file in the CVS repository) into primops.txt (a platform-dependent file, created at build time). We also preprocess PrelGHC.hi-boot.pp (a file in the CVS repository) into PrelGHC.hi-boot (a platform-dependent file, created at build time). The reason for using the preprocessor is because fewer primops are defined if SUPPORT_LONG_LONGS is undefined. SUPPORT_LONG_LONGS is undefined on 64-bit architectures such as the Alpha.
* [project @ 2001-08-04 06:11:24 by ken]ken2001-08-041-2/+2
| | | | | | | | | | | | | Changed # Add _hsc.c files to the cbits library SRCS += $(wildcard ../*_hsc.c) (which didn't work because SRCS has already been pattern-matched and substituted into other make variables to death by then) to # Add _hsc.c files to the cbits library C_SRCS += $(wildcard ../*_hsc.c)
* [project @ 2001-07-30 09:30:07 by simonmar]simonmar2001-07-301-21/+27
| | | | clean up; move some code into more relevant parts of the file.
* [project @ 2001-07-26 16:22:50 by qrczak]qrczak2001-07-261-1/+1
| | | | Clean *_hsc.$(way_)o for other ways too.
* [project @ 2001-07-25 10:10:25 by simonmar]simonmar2001-07-251-10/+17
| | | | | | | | | | | | | | | - Move FptoolsHcOpts out of the hslibs section of this file (which was *exactly* the wrong place for it). - Clarify the meaning of FptoolsHcOpts and GhcHcOpts. NOTE: $(FptoolsHcOpts) gets added to every Haskell compilation for Haskell *programs* (not libraries), including GHC itself. By default, it contains only -O. To remove the -O, you need to override FptoolsHcOpts in build.mk, not GhcHcOpts. GhcHcOpts is still there, and contains options to be added when compiling GHC only.
* [project @ 2001-07-24 10:37:57 by simonmar]simonmar2001-07-241-10/+10
| | | | | | Remove whitespace from the end of lines. The extra whitespace is syntactically meaningful to make(!) and was causing us to do a superfluous mkdependC in directories without any C files.
* [project @ 2001-07-24 04:45:59 by ken]ken2001-07-241-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added -static, a flag for compiling on the Alpha that is already listed under machdepCCOpts in DriverFlags.hs. Without it, the following assert in GC.c fails: /* make sure the info pointer is into text space */ ASSERT(q && (LOOKS_LIKE_GHC_INFO(GET_INFO(q)) || IS_HUGS_CONSTR_INFO(GET_INFO(q)))); Added -Xlinker -noprefix_recognition, a flag for Alpha compilation that I just added to machdepCCOpts in DriverFlags.hs. We need this flag to disable the following documented behavior of ld(1) on Digital UNIX: All routines that start with __init_ are treated, by default, as initialization routines. These are routines that are called without an argument when the file that contains them is loaded or when the program that contains them is started. Unfortunately, this flag produces the annoying (but harmless) gcc message gcc: -noprefix_recognition: linker input file unused since linking not done (See also ghc/compiler/main/DriverFlags.hs)
* [project @ 2001-07-24 04:39:31 by ken]ken2001-07-242-2/+8
| | | | | | | | | Make the Time module thread-safe by calling the reentrant functions gmtime_r and localtime_r instead of gmtime and localtime wherever they are available. (This is necessary to make Time work at all on our Alpha machine -- perhaps GHC tickles the reentrancy of the C library or something?)
* [project @ 2001-07-23 22:56:44 by ken]ken2001-07-231-1/+1
| | | | | Add the *.a.list "list of object files to archive" file to MOSTLY_CLEAN_FILES.
* [project @ 2001-07-23 22:52:33 by ken]ken2001-07-232-0/+12
| | | | | | | | | | | | Improved how we build library archives: On Digital UNIX (or where otherwise available), use the "Z" option to compress archives as we build them. On Digital UNIX 5 (or where otherwise available), use the "-input" option, which reads from a specified file the list of objects to archive. This is significantly faster than piping the list of objects to xargs when the number of objects to archive is large.
* [project @ 2001-07-23 22:38:02 by ken]ken2001-07-231-1/+1
| | | | | Fixed: making dependencies for Haskell source files fails if -split-objs is present in $(HC_OPTS).
* [project @ 2001-07-23 22:33:52 by ken]ken2001-07-232-1/+18
| | | | | Added "--enable-hc-boot-unregisterised" option to configure, for bootstrapping from unregisterised HC files.
* [project @ 2001-07-23 13:49:49 by simonmar]simonmar2001-07-231-2/+2
| | | | add a couple of missing ';'
* [project @ 2001-07-21 11:38:19 by simonmar]simonmar2001-07-211-1/+1
| | | | make ==> $(MAKE)
* [project @ 2001-07-17 21:12:33 by qrczak]qrczak2001-07-171-1/+1
| | | | Include way in HSC_C_OBJS to clean *_hsc.p_o too.
* [project @ 2001-07-16 21:01:58 by qrczak]qrczak2001-07-161-1/+1
| | | | Follow the s/includes/include/ change in package.conf.
* [project @ 2001-07-16 09:30:30 by rrt]rrt2001-07-161-0/+1
| | | | Set -DDLLized when DLLized is true for use in C source
* [project @ 2001-07-16 09:13:39 by rrt]rrt2001-07-161-0/+6
| | | | Fix DLL building, and add support for linking .hsc.o files into cbits libraries
* [project @ 2001-07-13 15:03:00 by simonmar]simonmar2001-07-131-1/+4
| | | | add warning about not changing WhatGccIsCalled from build.mk.