Commit Graph

263 Commits

Author SHA1 Message Date
Alexandre Julliard 581be47a45 makefiles: Fix expansion of '$$' in make variables.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:03:38 +09:00
Alexandre Julliard e0b1e8154d makefiles: Avoid running config.status when not necessary.
If it doesn't contain substitutions, we can use Makefile.in directly.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 17:52:52 +09:00
Alexandre Julliard 6222e49c37 makefiles: Get rid of the support for updating a makefile in place.
We always regenerate the makefile first nowadays.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 17:47:07 +09:00
Alexandre Julliard ef557a8a8a makefiles: Read variable definitions from the top makefile instead of using Make.vars.in.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 14:49:36 +09:00
Felix Janda 4fde1e238b makedep: Don't mix options and arguments for wrc and widl. 2014-09-05 15:22:08 +02:00
Alexandre Julliard c6ba107a41 makedep: Store the includes list inside the makefile structure. 2014-04-11 17:04:01 +02:00
Alexandre Julliard b69a0e89dc makedep: Parse files as soon as they are loaded, and cache the information. 2014-04-11 16:58:50 +02:00
Alexandre Julliard c16df0cd9b makedep: Open files from the top-level directory as far as possible. 2014-04-11 14:24:53 +02:00
Alexandre Julliard 4cb68d2322 makedep: Store the sources list inside the makefile structure. 2014-04-10 13:52:47 +02:00
Alexandre Julliard 299ce6f9f0 makedep: Add a helper function to check if a string exists in an array. 2014-04-10 13:52:44 +02:00
Alexandre Julliard f9ddafa807 makedep: Pass a makefile pointer to all internal functions. 2014-04-10 13:52:41 +02:00
Alexandre Julliard dcf6060ab8 makedep: Add support for specifying an object directory different from the current directory. 2014-04-10 13:52:39 +02:00
Alexandre Julliard 081df721d0 makedep: Store more variables in the makefile structure. 2014-04-09 12:35:24 +02:00
Alexandre Julliard 8fdacd15d2 makedep: Compute source paths instead of loading them from the makefile. 2014-04-09 12:34:36 +02:00
Alexandre Julliard 228684d34f makedep: Add a structure to store individual makefile parameters. 2014-04-09 12:31:01 +02:00
Alexandre Julliard 43fd82c612 makedep: Add helper functions to get and set variables in string arrays. 2014-04-02 15:46:38 +02:00
Alexandre Julliard 83fe4ffb36 makedep: Allow the top-level makefile to set default values for make variables. 2014-04-02 15:46:34 +02:00
Alexandre Julliard 3917313154 makedep: Load some variables from the top-level makefile. 2014-04-02 15:46:30 +02:00
Alexandre Julliard 6bfd2e9a75 makedep: Add phony install targets for fonts also for the ttf case. 2014-04-02 10:58:47 +02:00
Alexandre Julliard 987f29173f makedep: Add dependency for ttf font files when necessary. 2014-04-01 13:30:59 +02:00
Alexandre Julliard 727ff27907 makedep: Pass the source directory as root for building documentation. 2014-03-10 12:17:00 +01:00
Alexandre Julliard c3c35dcff8 makedep: Add a helper function for concatenating paths. 2014-03-10 12:16:59 +01:00
Alexandre Julliard 8c0a717a5c makedep: Generate .fon rules directly into the output instead of adding generated files. 2014-02-18 16:42:36 +01:00
Alexandre Julliard c195e1355a makedep: Look for source files only in the source directory. 2014-02-18 14:52:42 +01:00
Alexandre Julliard 50a01b095e makedep: Only add global includes to the include paths when generating the makefile. 2014-02-18 14:52:39 +01:00
Alexandre Julliard 3bae3c6514 makefiles: Generate the testlist.c files at make depend time. 2014-02-10 10:58:00 +01:00
Alexandre Julliard 7307e2be69 tools: Move sfnt2fnt to its own directory.
Also rename to sfnt2fon to better reflect usage and avoid conflicts
with the previous binary on updates.
2014-02-06 11:23:05 +01:00
Alexandre Julliard 09e70524f4 makedep: Generate install rules for TrueType fonts based on pragmas in the .sfd file. 2014-02-05 13:49:08 +01:00
Alexandre Julliard 1cccb5594a makedep: Generate rules for bitmap fonts based on pragmas in the .sfd file. 2014-02-05 13:32:33 +01:00
Alexandre Julliard dc24a92f5b makedep: Add a helper function for computing base dir paths. 2014-01-28 19:38:44 +01:00
Alexandre Julliard 16286e45c4 makedep: Create target subdirectories at make depend time. 2014-01-15 11:52:53 +01:00
Alexandre Julliard 2da6fc368f makedep: Make the makefile mode the default behavior and remove obsolete options. 2014-01-14 21:16:40 +01:00
Alexandre Julliard ab4fc685ba makedep: Generate dependencies for mo files when supported. 2014-01-14 11:49:42 +01:00
Alexandre Julliard d19b68fa1a makedep: Expand compilation flags into the generated rules. 2014-01-14 11:45:58 +01:00
Alexandre Julliard 7d1d9b40f1 makedep: Expand tool names into the generated rules. 2014-01-13 17:37:31 +01:00
Alexandre Julliard c7411e22be makedep: Expand the winegcc target arguments into the generated rules. 2014-01-13 17:37:29 +01:00
Alexandre Julliard 09a75310da makedep: Expand the script names into the generated rules. 2014-01-10 12:53:15 +01:00
Alexandre Julliard 623cfef4a0 makedep: Add helper functions for computing source dir paths. 2014-01-10 12:47:19 +01:00
Alexandre Julliard ec8e5c610b makefiles: Generate explicit commands to create object subdirectories. 2014-01-08 16:11:30 +01:00
Alexandre Julliard 3e40fea9d6 makefiles: Automatically add the necessary msvcrt flags to the generated rules. 2014-01-08 14:34:15 +01:00
Alexandre Julliard 3dfcec768d makefiles: Always create dependencies from the top-level directory. 2014-01-07 12:20:26 +01:00
Alexandre Julliard 0d533cf0bd makefiles: Allow define arguments to be specific to a single file. 2014-01-07 12:20:25 +01:00
Alexandre Julliard 1a74fdbcee makefiles: Expand define arguments directly into the generated rules. 2014-01-07 11:25:24 +01:00
Alexandre Julliard ce25c89585 makedep: Don't expand variable references that use ${}. 2014-01-04 20:33:57 +01:00
Alexandre Julliard 9c2725d5d6 makedep: Grow the include file array dynamically. 2014-01-04 12:25:56 +01:00
Alexandre Julliard b192879597 makefiles: Automatically output appropriate target flags. 2014-01-01 21:44:38 +01:00
Alexandre Julliard e9afeb2a50 makefiles: Automatically add dll flags where necessary. 2014-01-01 21:33:06 +01:00
Alexandre Julliard 1cd2786f92 makefiles: Generate cross-compile rules automatically when supported. 2014-01-01 21:28:28 +01:00
Alexandre Julliard 54300b2302 makefiles: Add support for a variable to list extra targets. 2013-12-31 19:22:57 +01:00
Alexandre Julliard a40d4d20e0 makefiles: Include manpages in the all: target. 2013-12-31 19:18:06 +01:00
Alexandre Julliard 092f37fc2d makefiles: Include program files in the all: target. 2013-12-31 19:07:49 +01:00
Alexandre Julliard d08ff3ff19 makefiles: Use a single variable for all types of idl files. 2013-12-31 18:15:17 +01:00
Alexandre Julliard 6ee09e4d3c makedep: Generate rules for API documentation. 2013-12-30 20:23:16 +01:00
Alexandre Julliard 8bf0f5fe6d makedep: Generate rules for test binaries. 2013-12-30 20:19:33 +01:00
Alexandre Julliard 908dada662 makedep: Generate rules for static libraries. 2013-12-30 20:17:36 +01:00
Alexandre Julliard a37ef65ea8 makedep: Generate rules for import libraries. 2013-12-30 20:14:45 +01:00
Alexandre Julliard f6479c0513 makedep: Generate rules for the main module. 2013-12-30 20:08:13 +01:00
Alexandre Julliard 8d6e916168 makedep: Keep track of object files in separate arrays. 2013-12-30 20:07:02 +01:00
Alexandre Julliard 5706cdaa5b makedep: Pass string arrays by value in some places. 2013-12-28 19:52:33 +01:00
Alexandre Julliard 2af368b88c makedep: Manage current output column with a global variable. 2013-12-28 14:25:33 +01:00
Alexandre Julliard 8aa529417d makedep: Clean up output files on failure. 2013-12-28 14:25:32 +01:00
Alexandre Julliard 3b7cc5ec92 makedep: Generate a list of phony targets. 2013-12-28 14:25:31 +01:00
Alexandre Julliard 64b21eee94 makedep: Generate rules for TrueType fonts in maintainer mode. 2013-12-27 14:31:51 +01:00
Alexandre Julliard 2535a3b8f6 makedep: Generate rules for svg files in maintainer mode. 2013-12-27 14:31:51 +01:00
Alexandre Julliard 47c0f64fdd makedep: Manage generated source files explicitly instead of relying on name comparisons. 2013-12-27 14:31:51 +01:00
Alexandre Julliard cab558b4bd makedep: Allow overriding makefile variables through the MAKEFLAGS environment variable. 2013-12-27 14:31:51 +01:00
Alexandre Julliard ab8d61d29b makedep: Allow overriding makefile variables through the command line. 2013-12-27 14:31:51 +01:00
Alexandre Julliard c29ea61087 makedep: Use a string array to store makefile variables. 2013-12-27 14:31:50 +01:00
Alexandre Julliard 708d6d3ae8 makedep: Use a string array to manage dlldata source files. 2013-12-27 14:31:49 +01:00
Alexandre Julliard a8862d5d3c makedep: Use a string array to manage include directories. 2013-12-26 21:53:56 +01:00
Alexandre Julliard 1047e0474d makefiles: Leave it to install-sh to create destination directories. 2013-12-26 14:35:15 +01:00
Alexandre Julliard d7afa57597 makedep: Generate a common rule for all objects of a given idl source. 2013-12-26 13:36:53 +01:00
Alexandre Julliard 566d3418af makedep: Add a separate pragma flag for typelibs that need registration. 2013-12-26 13:32:49 +01:00
Alexandre Julliard 7779af1df9 makedep: Use array of filenames in more places. 2013-12-26 13:30:28 +01:00
Alexandre Julliard 3c7bec3ce8 makedep: Specify the old extension explicitly when replacing it. 2013-12-26 13:29:33 +01:00
Alexandre Julliard 1928d61146 makedep: Add support for reading source variables directly from the makefile. 2013-12-17 17:10:28 +01:00
Alexandre Julliard 3bcad54fc6 makefiles: Generate individual .gitignore files corresponding to the build targets. 2013-12-16 12:02:37 +01:00
Alexandre Julliard 73d1fa977a makefiles: Automatically create object sub-directories when needed. 2013-12-12 21:13:38 +01:00
Alexandre Julliard c2efb3b382 makefiles: Generate rules from makedep for .in files. 2013-12-12 20:04:53 +01:00
Alexandre Julliard be2c66d504 makefiles: Explicitly specify source directory in Makefile dependencies. 2013-12-12 13:18:24 +01:00
Alexandre Julliard 52e19da50d makedep: Generate rules for .x template files. 2013-12-12 12:00:04 +01:00
Alexandre Julliard 4674566ba4 makedep: Allow the source directory itself in include paths. 2013-12-02 23:28:58 +01:00
Alexandre Julliard 202d046d68 makedep: Don't look for header files in the build directories. 2013-11-30 12:50:30 +01:00
Alexandre Julliard c8a42b4735 makefiles: Generate include path options from makedep. 2013-11-19 14:16:36 +01:00
Alexandre Julliard a072dbc180 makedep: Use string arrays for include paths and object extensions. 2013-11-19 14:16:34 +01:00
Alexandre Julliard e2df0ab856 makefiles: Generate rules from makedep for building and installing man pages. 2013-11-18 11:40:00 +01:00
Alexandre Julliard a6fd273a90 makefiles: Generate rules from makedep for running tests. 2013-11-18 11:30:59 +01:00
Alexandre Julliard 517d274e3a makefiles: Add support for building from source files from a parent directory. 2013-11-12 13:47:44 +01:00
Alexandre Julliard fe946f253a makefiles: Add a makedep pragma to mark source files that are parts of the import library. 2013-11-11 11:46:21 +01:00
Alexandre Julliard 31eb8be661 makefiles: Output clean rules for generated files from makedep. 2013-11-09 22:10:49 +01:00
Alexandre Julliard 067d3f0ddb makefiles: Merge the relpath functionality into makedep. 2013-11-09 12:32:06 +01:00
Alexandre Julliard ae9f33e17b makedep: Add support for #pragma directives in the source to set the flags for generated files. 2013-11-05 20:38:17 +01:00
Alexandre Julliard 1f3e3fa424 makedep: Add per-file flag to store the information about files to generate. 2013-11-04 17:41:09 +01:00
Alexandre Julliard 3571c06799 makefiles: Generate explicit build rules for C source files from makedep. 2013-10-28 11:16:11 +01:00
Alexandre Julliard b9cb6d4f95 makedep: Automatically add the source idl for generated sources to the dependencies list. 2013-10-15 21:00:09 +02:00
Alexandre Julliard c9a4cc6ab7 makedep: Add a helper function to replace a file name extension. 2013-10-15 20:59:15 +02:00
Alexandre Julliard b1d4807fc2 makedep: Remove support for no longer used .mc.rc files. 2013-10-15 20:29:39 +02:00
Alexandre Julliard edf4dab5ef makefiles: Generate explicit build rules for testlist.c from makedep. 2013-10-15 13:53:12 +02:00
Alexandre Julliard d4593274dc makefiles: Generate explicit build rules for dlldata.c from makedep. 2013-10-15 13:53:11 +02:00
Alexandre Julliard d9a75184c7 makefiles: Generate explicit build rules for idl files from makedep. 2013-10-15 13:53:11 +02:00
Alexandre Julliard 25b0810655 makefiles: Generate explicit build rules for resource files from makedep. 2013-10-15 13:53:11 +02:00
Alexandre Julliard da4c49c744 makefiles: Generate explicit build rules for message files from makedep. 2013-10-15 13:53:11 +02:00
Alexandre Julliard c00cc015f8 makefiles: Generate explicit build rules for bison files from makedep. 2013-10-15 13:53:09 +02:00
Alexandre Julliard efef36c05a makefiles: Generate explicit build rules for lex files from makedep. 2013-10-14 19:49:29 +02:00
Alexandre Julliard bb45a93d71 makedep: Generate correct dependencies for testlist.c. 2013-10-14 16:05:32 +02:00
Alexandre Julliard c3aa495295 makedep: Add more helpers for file output and error handling. 2013-10-14 16:05:32 +02:00
Alexandre Julliard cf34a967cc makedep: Remove some unnecessary typedefs. 2013-10-14 16:05:31 +02:00
Ken Thomases dd2f2e4ee5 makedep: Add support for Objective-C .m files and #import directive. 2012-12-26 18:23:03 +01:00
Alexandre Julliard 54f71a0d8e makedep: Ensure that error messages contain "error".
Suggested by Dan Kegel.
2011-09-28 14:33:45 +02:00
Alexandre Julliard 729afa6adc makefiles: Generate resource files for typelibs. 2011-08-02 10:11:10 +02:00
Alexandre Julliard 0435b5825e makefiles: Add support for .x template files. 2011-05-05 16:31:59 +02:00
Alexandre Julliard 6d659d7e15 makedep: Add dependencies for the msg.pot file. 2011-01-27 15:15:01 +01:00
Alexandre Julliard 9771ad8ca7 makefiles: Generate .res files directly from message files. 2011-01-18 16:56:02 +01:00
Alexandre Julliard 7e6c75f1d1 makefiles: Generate dependencies for rsrc.pot. 2011-01-08 12:23:48 +01:00
Alexandre Julliard 1787e8f05e makedep: Add support for dll registration files. 2010-11-30 13:53:25 +01:00
Marcin Baczyński d04c2ccb27 makedep: Silence unused result warnings. 2010-04-06 14:32:28 +02:00
Alexandre Julliard 133d4cde26 makedep: Output source dependency for bison files needed for parallel makes. 2010-03-16 13:27:51 +01:00
Alexandre Julliard 5eb4b094a3 makedep: Append the separator if not found in an existing makefile. 2010-03-16 13:14:21 +01:00
Dylan Smith 8e0b17462b makedep: Handle non-overwriting rename for Windows. 2009-08-24 15:17:33 +02:00
Francois Gouget 73b0f65177 makedep: Add support for multiple object file extensions. 2009-06-30 12:39:32 +02:00
Paul Bryan Roberts 3e50aaf201 makedep: Let umask decide mode for makefiles. 2009-02-24 16:57:27 +01:00
Alexandre Julliard c31a36412c makedep: Copy the makefile to append dependencies instead of truncating in place. 2009-01-12 14:43:15 +01:00
Alexandre Julliard d8202087c7 makedep: Add dependencies on wine/exception.h for widl-generated files. 2008-07-03 13:08:19 +02:00
Detlef Riekenberg 5073aae038 makedep: Fix a typo in the usage output. 2008-06-13 10:17:16 +02:00
Alexandre Julliard 5f4f2c0b92 makedep: Don't try to open .tlb files. 2008-04-24 23:43:04 +02:00
Alexandre Julliard da19122f14 makefiles: Add support for generating correct dependencies for tlb files. 2008-04-24 22:13:57 +02:00
Alexandre Julliard b9966054cf makedep: Added support for dlldata.c dependencies. 2007-12-10 14:26:25 +01:00
Alexandre Julliard 4fff18b534 makedep: Fixed string comparison against the source tree path
(reported by Kai Blin).
2007-03-01 20:42:49 +01:00
Alexandre Julliard 75c2184f87 widl: Include objbase.h so that generated proxy file compiles on Wine. 2007-01-19 13:17:17 +01:00
Alexandre Julliard f92ef1c543 makedep: Add support for magic comments in .rc files so we can generate proper dependencies for them. 2006-12-26 15:02:03 +01:00
Alexandre Julliard 8f31f92a73 makedep: Added support for generating dependencies of IDL client/proxy/server/iid files. 2006-10-16 17:19:07 +02:00
Alexandre Julliard 1b9535afc8 makedep: Update dependencies even with no source files. 2006-09-22 09:25:49 +02:00
Alexandre Julliard e4fca883a2 makedep: For generated headers, parse the source idl instead.
This avoids having to generate all the headers before make depend.
2006-09-10 22:04:42 +02:00
Alexandre Julliard 560c9ee785 makedep: Support for new naming scheme for lex files. 2006-09-09 13:16:59 +02:00
Alexandre Julliard ded32d5194 makedep: Always search for includes in the standard directories, even without -I option. 2006-08-01 12:37:18 +02:00
Alexandre Julliard dea28ee4a6 makedep: Don't add dependencies for system headers. 2006-08-01 12:27:22 +02:00
Alexandre Julliard b7ef1b2e20 makedep: Get rid of restrictions on line lengths. Merge lines that end in a backslash. 2006-08-01 12:16:29 +02:00
Alexandre Julliard f25c4d47d6 makedep: Convert to standard Wine lists. 2006-08-01 12:13:57 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Alexandre Julliard cd91bc61be Now that we are requiring bison anyway, make the .tab.c file use the
same base name as the .y file, so that we can generate correct
dependencies in all cases.
2005-09-28 18:17:08 +00:00
Alexandre Julliard ffca0d6128 Added some checks for the config.h inclusion rules in the Wine tree. 2004-04-07 04:00:16 +00:00
Alexandre Julliard 0bcf775555 Added support for #include in IDL files (based on a patch by Robert
Shearman).
2003-06-20 21:31:13 +00:00
Alexandre Julliard aa89eccc71 Added support for generating dependencies for idl files. 2003-04-11 00:38:56 +00:00
Alexandre Julliard 8cbdb9784e Don't use libwine_port in makedep to avoid dependency problems. 2003-03-20 21:08:28 +00:00
Alexandre Julliard 184c40a397 Try to open source file in current directory first in case it is a
generated file.
2002-12-11 01:30:14 +00:00
Dmitry Timoshkov c63d98038a Include protection for <unistd.h>, <sys/types.h> and <sys/stat.h>. 2002-08-17 18:28:43 +00:00
Alexandre Julliard 9bb05fc48e Specify the complete source file list for a dll inside the main
makefile and get rid of the subdirectories makefiles.
2002-05-14 18:36:54 +00:00
Alexandre Julliard 5769d1de00 Better support for configure detection of missing types, added check
for ssize_t.
Removed a couple of no longer used portability functions.
Various portability fixes in port.h.
2002-04-26 19:05:15 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Alexandre Julliard fed8f1cbf2 Modified makedep to handle #include <> correctly (based on a patch by
Patrik Stridvall).
2002-02-15 19:57:27 +00:00