aboutsummaryrefslogtreecommitdiffstats
path: root/dos/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* dosutil: move copybs here, update MakefileH. Peter Anvin2010-02-151-1/+1
| | | | | | | Move copybs to dosutil, change the Makefile to deal with UPX being able to compress (e.g. very small files.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* dos: int 25/26 may be register-dirty; wrap them in assemblyH. Peter Anvin2009-11-131-1/+2
| | | | | | | | int 25h and int 26h are known to be register-dirty for some versions of DOS -- unlike int 21h, which is usually clean. As such, wrap those in assembly functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* dos: don't add the linker script twice on the ld command lineH. Peter Anvin2009-11-111-1/+1
| | | | | | | My version of the linker can deal with it, but others might not be so smart. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* dos: drop unneeded .eh_frame sectionH. Peter Anvin2009-11-111-1/+1
| | | | | | gcc will produce an .eh_frame section, which we have no use for. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* dos: make DOS installer work under WinMEH. Peter Anvin2009-11-101-0/+1
| | | | | | | At least under WinME, the DOS installer did not work as advertised. With these modifications, it seems to work okay. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix NASM dependency generationH. Peter Anvin2009-04-271-1/+1
| | | | | | | | | Fix missing -M from NASM dependency generation calls; adopt the uniform stanza "-M -DDEPEND" even for sites that were already correct. Also, use ">" not ">>" for obvious reasons... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generation: MCONFIG.embeddedH. Peter Anvin2009-04-271-10/+1
| | | | | | | Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generationH. Peter Anvin2009-04-271-5/+5
| | | | | | | | | | | | Make the dependency generation more common; have a general pattern in MCONFIG, and use it in rules (not in CFLAGS). For NASM source, in order to stay compatible with old versions of NASM, run NASM twice; newer versions of NASM is capable of generating dependencies simultaneously like gcc can, but that would break compatibility with older distros. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Clean up embedded Makefile targets; fix build failureH. Peter Anvin2008-08-221-16/+2
| | | | | | Unify common pieces to "embedded" targets (those that produce code that runs neither in the host nor in a com32 environment); this fixes the broken sample/ directory Makefile.
* Major Makefile cleanups; gcc 4.3.0 compatiblityH. Peter Anvin2008-08-201-22/+33
| | | | | Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
* Build _bin.c files in libinstaller; clean up B/I separationH. Peter Anvin2008-06-271-2/+4
| | | | | | | Clean up the BSUBDIR/ISUBDIR separation further. Build _bin.c files, which are an intermediate stage toward building the installers, in the libinstaller directory, since that directory is used by all the installers anyway. That also lets us get bin2c.pl out of the root.
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-291-8/+13
| | | | | | | | Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.
* Assemble via ELF, to enable future linkingH. Peter Anvin2008-05-281-1/+2
| | | | | Assemble all files to ELF instead of using the NASM built-in linker. This can enable us to do actual linking in the future.
* Fixed the various Makefiles so that SYSLINUX compiles on platforms with GCC ↵Stefan Bucur2008-05-121-1/+2
| | | | -fstack-protector flag enabled by default.
* Use $(CC) in gcc_ok macro, not plain gccH. Peter Anvin2008-03-051-1/+1
| | | | | Use $(CC) in gcc_ok macro, not plain gcc. This seems to work, iff the gcc_ok macro is declared with =, not :=
* Prevent inclusion of system include files when inappropriateH. Peter Anvin2008-03-031-1/+2
| | | | | Use "-nostdinc -iwithprefix include" to prevent the inclusion of system header files, but still permitting *compiler* header files.
* Create libinstaller; actually implement boot-once for extlinuxH. Peter Anvin2007-12-141-3/+5
| | | | | | --once now supported for extlinux; some infrastructure for syslinux there as well, need implementation in all the various installers, however.
* Don't clobber /dev/null when compiling as rootLuciano Rocha2007-05-251-2/+4
| | | | | | Compiling as root is highly discouraged, but some people do it anyway. gcc_ok, however, can clobber /dev/null due to "-o /dev/null"; this is bad. Instead, write a temporary file and delete it.
* Deal with various distributions breaking gcc in weird waysH. Peter Anvin2007-02-061-1/+6
|
* Makefile cleanup to be able to build with CC='gcc -m32'syslinux-3.32-pre2H. Peter Anvin2006-10-171-1/+3
|
* Move -m32 to CFLAGS as wellH. Peter Anvin2006-10-171-2/+2
|
* Move flags from CC to CFLAGSH. Peter Anvin2006-10-171-2/+2
|
* Across-the-board stealth whitespace cleanupH. Peter Anvin2006-05-031-3/+0
|
* Make the various Makefiles agree what is BTARGET and what is ITARGEThpa2004-12-301-4/+5
|
* Fix using the resolver function from the API (with DS != CS); addsyslinux-3.00-pre8hpa2004-12-281-1/+1
| | | | test/sample file to do that; fix bug in chain.c.
* Support the -m and -a options for the DOS installer as wellhpa2004-12-281-2/+2
|
* Make DOS installer use our homegrown 64-bit dividesyslinux-2.20-pre7hpa2004-12-191-2/+2
|
* Beef up the sanity checking of the boot sector. For really better checkinghpa2004-12-191-1/+2
| | | | we should be checking the FAT for the media signature, too.
* Fix dec/hex bug in crt0.S; do -msoft-float just in casehpa2004-12-181-1/+1
|
* Resurrect printf(), and create a library. This way we can use printf()hpa2004-12-181-3/+12
| | | | during debugging without having it linked in during production build.
* Actually parse argc/argv properly.hpa2004-12-171-1/+1
|
* Add -DREGPARM=3 to go along with -mregparm=3hpa2004-12-161-1/+1
|
* Convert to using -mregparm=3; makes the code slightly smaller ANDhpa2004-12-161-1/+1
| | | | avoids some stupid problems with .code16 on some binutils versions.
* Adjust the interface to syslxmod.c so the DOS installer doesn't needhpa2004-12-151-1/+1
| | | | printf().
* Simple memset/memcpy implementationhpa2004-12-151-1/+1
|
* Tweak optimizations.hpa2004-12-151-1/+1
|
* Convert the DOS installer to C like everything else.hpa2004-12-151-14/+32
|
* More adjustment to the Brave New World<TM>hpa2004-12-151-0/+31