1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 22:42:46 +02:00
Commit Graph

155 Commits

Author SHA1 Message Date
Chris Lattner
33ce0dd665 Fix a really bad build problem for users who have .o in their build directory!
Thanks to Reid Spencer for figuring this out!  :)

llvm-svn: 9763
2003-11-07 04:39:53 +00:00
Misha Brukman
c48d9c4103 Output only the .y filename, not the full path to it for ease of reading.
llvm-svn: 9729
2003-11-05 06:41:14 +00:00
John Criswell
77f2ab0370 Modified build rules so that a messages appears before and after linking.
This helps to disambiguate when linking begins and when the library/program
is linked and ready to be used.
This is sort of as preference thing, so feel free to modify/revert the change.

llvm-svn: 9687
2003-11-03 21:12:49 +00:00
Dinakar Dhurjati
357cab254e Fixed LinkO, LinkP error in TOOLLINKOPTSB
llvm-svn: 9591
2003-10-29 20:34:13 +00:00
Dinakar Dhurjati
f850b1a456 Added TOOLLINKOPTSB to pass options to the linker (e.g. adding search
path for external libraries).

llvm-svn: 9582
2003-10-29 14:28:35 +00:00
Brian Gaeke
9061e3664a Add __STDC_LIMIT_MACROS here.
llvm-svn: 9549
2003-10-28 19:09:28 +00:00
Chris Lattner
e5fd89c157 When linking the runtime libraries, do not link -lc and -lgcc into the libraries
llvm-svn: 9339
2003-10-21 18:00:37 +00:00
John Criswell
0a6ca076e4 Added LLVM copyright notice.
llvm-svn: 9319
2003-10-21 14:33:46 +00:00
John Criswell
27f6878d71 Added autoconf support for the sample project.
Fixed the header comment in Makefile.rules
Changed all references to the echo program in Makefile.rules to the value
found by autoconf.

llvm-svn: 9151
2003-10-16 01:49:00 +00:00
Misha Brukman
a35992da67 Print out just the filename being compiled/linked, not the full path to it.
llvm-svn: 9018
2003-10-10 17:37:22 +00:00
Chris Lattner
bebc7a0e6c Make the message stand out more
llvm-svn: 9004
2003-10-10 15:55:43 +00:00
Misha Brukman
4c0e564072 Depend on config.status instead of config.h, because config.h timestamp may not
change even though configure changes.

llvm-svn: 8923
2003-10-07 15:24:23 +00:00
John Criswell
bbebc106ee Added targets that force users to re-run autoconf when the script has been
updated.

llvm-svn: 8921
2003-10-07 14:16:44 +00:00
John Criswell
779b9aa2fe Fixed the conditional targets for postscript files and tags.
llvm-svn: 8823
2003-10-02 19:02:02 +00:00
John Criswell
7a032bd1de Changed the empty rule for .h files. The rule needs an empty command so that
Make actually uses it to "regenerate" header files that have been
moved/removed.

llvm-svn: 8600
2003-09-18 18:37:08 +00:00
Chris Lattner
0144d69391 Put llvm .bc files into the BytecodeObj subdirectory instead of the Bytecode
subdirectory.  This prevents the 'make clean' rule from removing lib/Bytecode

llvm-svn: 8550
2003-09-15 22:17:02 +00:00
Chris Lattner
6abadeddb2 Allow specifying a file with symbols to export
llvm-svn: 8531
2003-09-15 15:06:54 +00:00
Chris Lattner
7713b6e414 Wrap long lines at 80 cols
llvm-svn: 8512
2003-09-15 01:12:04 +00:00
Chris Lattner
12fe9440cd Make sure to #include the OBJROOT config.h file, not the SRCROOT config.h file!
llvm-svn: 8511
2003-09-15 01:07:32 +00:00
John Criswell
fd9221eff3 Fixed SPEC so that it would run correctly with the new autoconf-style object
directory.
Added Makefile.spec to the list of files to copy to the object directory.
Moved the configuration of $SourceDir to Makefile.config and corrected the
conditional that surrounds it.  This allows SPEC to reset it and get the correct
VPATH.

llvm-svn: 8475
2003-09-11 18:03:50 +00:00
John Criswell
1f114e5ead Removed the aposthrophes endings and the elipses suffixes from build output.
This makes the output more consistent, and I just find aposthrophes annoying.
:)

llvm-svn: 8465
2003-09-11 15:15:53 +00:00
Chris Lattner
b0ff60d540 Avoid dumping runtime library bytecode files into lib/Bytecode if building
into the source directory

llvm-svn: 8450
2003-09-10 19:37:51 +00:00
John Criswell
e783801878 Updated to find source files using VPATH. This makes writing build rules
much cleaner and easier.
Labeled .td as a suffix for tblgen files in Makefile.rules.
Modified build rules so that source files generated during the build are placed
in the build directory and not the source directory (and not in a Debug
directory).  This makes the system cleaner and allows us to have a read-only
source tree.

llvm-svn: 8424
2003-09-09 20:57:03 +00:00
John Criswell
e84e43b4a6 Checkin of autoconf-style object root.
Moved Makefile.common to Makefile.rules.  This makes project Makefiles easier
to support, and allows for easier overriding of default configuration values
that used to be in Makefile.common.
Modified Makefile.config.in to determine paths for directories (like
LLVM_SRC_ROOT) and to use the pwd binary as opposed to the shell builtin (this
works better for symbolic links).

llvm-svn: 8377
2003-09-06 14:44:17 +00:00
Chris Lattner
32a2f9698f Slightly simplify make logic
llvm-svn: 8211
2003-08-29 14:07:02 +00:00
Misha Brukman
1aa0f15bd0 Start using llvm-as' instead of as'.
llvm-svn: 8193
2003-08-28 21:45:08 +00:00
Chris Lattner
ccf9e52d5f Refactor code slightly. Make code compiled with llvmgcc use the warning options
as well.  Compile with -fshort-enums whether in debug or release mode, because it breaks the ABI

llvm-svn: 8164
2003-08-27 18:26:44 +00:00
Chris Lattner
3984e3eac5 Fix typeo
llvm-svn: 8069
2003-08-23 15:56:38 +00:00
Chris Lattner
277f72713c Remove last remenants of cleandeps
Allow disabling generation of .d files for a whole directory

llvm-svn: 8053
2003-08-22 14:10:16 +00:00
Chris Lattner
e63f08044c Ugh, really fix it now... :(
llvm-svn: 8047
2003-08-22 05:22:13 +00:00
Chris Lattner
0ac32902d8 Fix computation of LLVM_OBJ_ROOT for non-projects :(
llvm-svn: 8046
2003-08-22 05:18:49 +00:00
Chris Lattner
31338eca2e Include the top-level Makefile.config from the LLVM tree for projects
llvm-svn: 8035
2003-08-21 22:28:46 +00:00
Chris Lattner
d77d621dbf Projects no longer need to specify LLVM_OBJ_ROOT. Also, for the prdirs target, don't let make print out all of the echo commands before the echos get echo'd
llvm-svn: 8034
2003-08-21 22:23:49 +00:00
Misha Brukman
4c8f0c41d9 The word dependence' and its derivatives have no a'.
llvm-svn: 8028
2003-08-21 22:02:18 +00:00
Chris Lattner
532962d643 Make the tags rule tolerate lack of one of the standard directories
llvm-svn: 8027
2003-08-21 21:53:38 +00:00
Chris Lattner
de5780a502 * Remove cleandeps target
* Implement much nicer .d files, as suggested by Casey Carter

llvm-svn: 8020
2003-08-21 20:39:08 +00:00
Chris Lattner
d58cc1bfa5 fix dependency
llvm-svn: 8004
2003-08-21 15:47:37 +00:00
Chris Lattner
99eb396cc0 Point to the correct cc1/cc1plus binaries
llvm-svn: 7997
2003-08-20 22:11:45 +00:00
John Criswell
519d7f9e50 Modified the SUFFIXES pseudo targets so that we remove all default suffixes
and explicitly declare all the ones we're using for LLVM.
This quickly cancels many of GNU Make's implicit rules and reduces build time.
The only caveat is that any new suffixes may need to be explictly added to
the .SUFFIXES pseudo target.

Removed the -only-static option as it is no longer used.

llvm-svn: 7979
2003-08-20 15:18:41 +00:00
Chris Lattner
0a017f68c9 Add new cleandeps target, to allow easy cleaning out of .d files
llvm-svn: 7954
2003-08-18 17:27:40 +00:00
Chris Lattner
aee049613e Remove extraneous ;'s, no functional changes
llvm-svn: 7902
2003-08-15 20:00:47 +00:00
Chris Lattner
9e8f3b6a49 Add llvm tools to path of LLVMGCC
llvm-svn: 7882
2003-08-15 15:20:52 +00:00
Chris Lattner
40351fc323 Make sure to create the directory before we cram a .bc file into it
llvm-svn: 7864
2003-08-15 03:02:52 +00:00
Chris Lattner
7b45e00414 Implement BYTECODE_LIBRARY support
llvm-svn: 7855
2003-08-15 02:18:35 +00:00
Chris Lattner
1b6f820a48 Simplifications to Makefile.common, remove support for Purify since it was
broken by libtoolification anyways, and noone can use it because purify doesn't
support the 64-bit sparc compilers even if it weren't broken!

llvm-svn: 7850
2003-08-14 21:10:25 +00:00
John Criswell
b84423a6e8 Merged in changes between PRE11_ROOT and LLVM_PRE111 (i.e. the beginning of
the pre-release 1.1 branch and pre-release 1.1.1).
Made the USE_SPEC option work.
Silenced unnecessary error output from the cmp command when checking for
updates to lex/yacc generated files.  This fixes a problem where we get error
messages the first time the file is generated.
Fixed the distclean option.  It is now in the Makefile (i.e. only runs in the
top level source directory), removes more files, and plays nicely with
external project Makefiles.

llvm-svn: 7780
2003-08-12 18:51:51 +00:00
Brian Gaeke
e45b89dee3 Makefile.common: Remove commented-out and duplicate rules.
llvm-svn: 7650
2003-08-06 21:44:22 +00:00
John Criswell
bc2e14bd15 Reverted back to using OR for cmp/mv operations for lex/yacc output.
The shell AND/OR operators short-circuit on command success/failure, which is
the inverse of exit status (i.e. 0 means success, non-zero means failure).

llvm-svn: 7616
2003-08-05 21:38:28 +00:00
John Criswell
a40b9262ec Switched from using diff to cmp for two reasons:
o Not all versions of diff have the -q option
	o The cmp program is probably faster than diff
Fixed the logic that only copies the file over if no differences are found.

llvm-svn: 7615
2003-08-05 21:21:58 +00:00
Chris Lattner
cae5e0ed1a Urg, do not print "foo has changed" messages
llvm-svn: 7573
2003-08-04 20:07:01 +00:00