summaryrefslogtreecommitdiff
path: root/Mkfiles
Commit message (Collapse)AuthorAgeFilesLines
* openwcom.mak: drop /f from delete commandsH. Peter Anvin2010-06-151-30/+30
| | | | | | Classic DOS doesn't have del /f, and we don't really need it. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Rename filenames to 8.3 formatH. Peter Anvin2010-06-154-250/+244
| | | | | | | Apparently some people still care about compiling native on MS-DOS, and we don't have a significant number of files which need adjustment. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Add generic ilog2 functionsH. Peter Anvin2010-04-214-8/+17
| | | | | | | | Add ilog2_{32,64}() and alignlog2_{32,64}() ... the latter is intended for alignment statements and return -1 for non-power-of-2 other than 0 (which returns 0). Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Makefile: clean up the lib directory on make cleanH. Peter Anvin2010-04-213-0/+9
| | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* make: Update pecoff.h related depsCyrill Gorcunov2010-04-214-4/+4
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Mkfiles: Add depends on stabs.h for Elf outputCyrill Gorcunov2010-01-034-14/+14
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Run "make alldeps"H. Peter Anvin2009-11-304-222/+230
|
* Merge elf header filesCyrill Gorcunov2009-11-064-13/+13
| | | | | | | | | Merge elfcommon.h, elf32.h, elf64.h into single elf.h -- we do support both elf32 and elf64 anyway. Let put them into common place. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Add strlcpy() functionH. Peter Anvin2009-08-104-33/+36
| | | | | | | Add strlcpy() function and implementation, and use configure to detect if strlcpy() is natively available on the system. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run make alldepsH. Peter Anvin2009-07-184-56/+56
|
* Hash even backend-specific directives, unify null functionsH. Peter Anvin2009-07-124-337/+365
| | | | | | | | | Hash all directives, even the ones that are backend-specific, and instead pass the backend an already-parsed directive number. Furthermore, unify null functions across various backends. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Use a phash to decode directivesH. Peter Anvin2009-07-124-39/+69
| | | | | | We can use a perfect hash to decode directives as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run make alldepsH. Peter Anvin2009-06-274-16/+23
|
* Move backend-specific code to output/; break out null debug stuffH. Peter Anvin2009-06-274-88/+108
| | | | | | | | Move backend-specific code into the output/ directory, and make the null debugging backend a separate file (it certainly isn't needed for ndisasm...) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Handle the new ELF headers in the dependency generationH. Peter Anvin2009-06-254-12/+28
| | | | | | | | | | The dependency machinery relies on properly rooted includes, so give it to them... the path syntax munging machinery in the dependency script handles it from a Makefile syntax perspective, and then we can hope that C compilers are smart enough to deal with forward-slash paths even when that is not the native syntax. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* ELF: use rbtree for symbol searchesH. Peter Anvin2008-11-064-8/+8
| | | | | | | | Linear searches are evil, so use an llrbtree to search for symbols by offset. This doesn't change the preexisting behaviour that we only look for global symbols. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Move all version strings to a single compilation unit (ver.c)H. Peter Anvin2008-10-314-151/+160
| | | | | | | Move all the version strings to a single compilation unit, ver.c; this does not include the version macros, which are fed into macros.c. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* rbtree: drop the data pointer; instead rely on being embeddedH. Peter Anvin2008-10-304-4/+4
| | | | | | | | Drop the data pointer, and instead assume the struct rbtree will be embedded in a bigger data structure (to be extracted via container_of()). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Left-leaning red-black tree data structureH. Peter Anvin2008-10-294-4/+8
| | | | | | | | | | | Implement library functions for "left-leaning red-black trees" with uint64_t keys. This is meant for looking up symbols by address in the backends that need to do so, e.g. ELF. A good question is if there is a better way to do this, that recovers the original symbol, but that's a future issue. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* make alldepsH. Peter Anvin2008-10-294-27/+28
| | | | | | Run "make alldeps" Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* output: add common file outlib.c for common functions; realsize()H. Peter Anvin2008-10-274-8/+16
| | | | | | | Add a common file, outlib.c, for output formats. Add the function realsize() instead of open-coded variants in almost every backend. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run "make alldeps"H. Peter Anvin2008-09-094-4/+8
|
* version.mak for the version Makefile fragmentH. Peter Anvin2008-07-131-2/+2
| | | | | Be consistent about the naming of the version Makefile fragment. We use .mak elsewhere for Makefiles, so use that.
* Run "make alldeps"H. Peter Anvin2008-06-214-157/+162
|
* preproc: add support for builtin include modules (%use)H. Peter Anvin2008-06-194-4/+4
| | | | | | | | | Add a builtin equivalent to the %include directive called %use. %use includes a standard macro file compiled into the binary; these come from the macros/ directory in the source code. The idea here is to be able to provide optional macro packages with the distribution, without adding complex host filesystem dependencies.
* syncfiles: use #-- ... --# for consistency with mkdep.plH. Peter Anvin2008-06-154-8/+8
| | | | | | mkdep.pl already used #-- ... --# (two dashes) whereas syncfiles.pl was using #--- ... ---# (three dashes). Change syncfiles.pl to match mkdep.pl.
* syncfiles: handle the case of the null path separatorH. Peter Anvin2008-06-151-5/+5
| | | | | Correctly handle the null path separator (meaning remove the directory portion entirely.)
* Script to automagically synchronize the object file listsH. Peter Anvin2008-06-154-15/+27
| | | | | Add a script to automagically synchronize the list of object files between the various Makefiles.
* Update Mkfiles/*.makH. Peter Anvin2008-06-154-8/+8
| | | | Sync the file list in Mkfiles/*.mak
* Implement __utf16__() and __utf32__() for the DB familyH. Peter Anvin2008-06-144-4/+12
| | | | | Implement __utf16__() and __utf32__() for the DB family of pseudo-instructions. Not yet implemented for evaluation context.
* Move all the RAA code out of nasmlibH. Peter Anvin2008-06-094-32/+36
| | | | | The RAA code doesn't have to be in nasmlib; it is only used by nasm itself, and is better handled in a separate module.
* Move all the SAA code out of nasmlibH. Peter Anvin2008-06-094-36/+40
| | | | | | Move all the SAA code out of nasmlib; it's not used by anything than nasm itself. Cleaning out the kitchen sink known as nasmlib is a good thing, too.
* Replace the WSAA macros with functionsH. Peter Anvin2008-06-084-4/+8
| | | | Change the WSAA macros into functions; reducing the icache footprint.
* Update .gitignore, remove bogus dependencyH. Peter Anvin2008-06-044-4/+0
|
* Makefile/dependency updatesH. Peter Anvin2008-06-044-19/+27
| | | | Add quote.c to all the auxiliary Makefiles, and run "make alldeps".
* make alldepsH. Peter Anvin2008-05-274-4/+4
|
* openwcom.mak: wmake uses & for continuation, not \ (sigh)H. Peter Anvin2008-05-201-3/+3
| | | | | wmake uses & for continuation, since \ is used for pathname separators.
* netware.mak: correct dependenciesH. Peter Anvin2008-05-201-26/+26
| | | | | The Makefile uses VPATH and stripped directory names for files, so generate the dependencies accordingly.
* Avoid #including .c files; instead compile as separate unitsH. Peter Anvin2008-05-204-107/+93
| | | | | | Don't #include .c files, even if they are auto-generated; instead compile them as separate compilation units and let the linker do its job.
* Make insnsb.c an actual compilation unitH. Peter Anvin2008-05-134-25/+30
| | | | | | | "make alldeps" doesn't really like it when included files end in *.c. Instead of renaming insnsb.c to insnsb.h, make it an actual compilation unit, since there really isn't any reason for it not to be.
* Generate a byte array instead of using strings for the byte codesH. Peter Anvin2008-05-124-22/+36
| | | | | | | | | | | Generate a byte array instead of using C compiler strings for the byte codes. This has a few advantages: - No need to special-case zero due to broken C compilers. - Only insns.pl only ever reads the string, so we can invent our own syntax. - Compaction. - We can give it the proper, unsigned type.
* Temporaries in macros need a unique prefix; WSAA*() macros to headerH. Peter Anvin2008-04-104-8/+8
| | | | | | | | When using temporaries in macros, given them a unique prefix to avoid namespace collisions when using one macro inside another. Move the WSAA*() macros from outelf32/outelf64 to a separate header file.
* OpenWatcom: optimize for 686H. Peter Anvin2008-02-162-2/+2
| | | | | Apparently -6 compiles are defined to run on anything 386 or newer, and just use different instruction timings.
* Mkfiles/README: document the Netware Makefile.H. Peter Anvin2008-02-051-0/+8
|
* Add Makefile for NetwareH. Peter Anvin2008-02-051-0/+213
| | | | Add Makefile for Netware, using the GNU toolchain.
* OpenWatcom makefiles: add DEBUG optionH. Peter Anvin2008-01-212-2/+4
| | | | | Add a Makefile variable, DEBUG, which can be used to set debug options (-d2, -DLOGALLOC, etc.)
* Fix the options when compiling under OpenWatcomH. Peter Anvin2008-01-212-10/+26
| | | | | | | | OpenWatcom needs different strings for compile and link target, so using -bcl which uses the same string for both is just plain wrong. This fixes that bit, but running nasm on test/floatx.asm (at least as a DOS or a Win32 binary) crashes with a NULL pointer reference inside the C library free() function.
* Run "make alldeps"H. Peter Anvin2007-10-303-15/+18
|
* owlinux.mak: don't clean things we won't be able toH. Peter Anvin2007-10-101-4/+5
| | | | | There won't be a Makefile in rdoff in particular, so trying to run "make clean" there is pointless.
* make alldepsH. Peter Anvin2007-10-023-12/+12
|