⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build.txt

📁 GNU FreeDOS兼容MS DOS很好的东东.
💻 TXT
字号:
To build the operating system, a batch file (BUILD.BAT) is includedto make life easier.  This file is in the FDKERNEL directory of thedistribution.  In addition, there is a corresponding batch file(CLEAN.BAT) to clean up the source directories.There is a CONFIG.B file that specifies all the paths and names ofthe compiler, assembler, etc. that you want to use.  You MUST copyit to CONFIG.BAT first, then edit it to reflect your setup.The reason for this copying of files is that when new releases of thekernel come out, you can extract them over your previous source, andnot have to worry about resetting up your configuration because yourCONFIG.BAT file will not get replaced!The recommended compiler and assembler at the time of writing (2004/01/31)are OpenWatcom 1.2 and NASM 0.98.38.You may need to download the latest version of NASM and a C compilerBe sure to edit the CONFIG.BAT file to reflect where you put the tools.You can find NASM at http://nasm.sourceforge.net. Version 0.98.36 orlater is strongly recommended. The older 0.98 will also work fine, butany version in between is likely to fail. It's best to use a NASMthat is native to your host; that is, when compiling in Windows, usethe win32 version. The DJGPP version is less likely to run out ofmemory than the DOS version.Optionally, the kernel can be compressed using UPX. You can findUPX at http://upx.sourceforge.net. Simply adjust config.bat toenable it.This kernel compiles with Turbo C 2.01, Turbo C++ 1.01 (now freelyavailable!), Turbo C 3.0, Borland C 4.51 & 5.01.  It should work withother Borland and Microsoft compilers and (Open)Watcom C. GCC cancompile the kernel but the result does *not* work (no 16-bit x86 support).The OpenWatcom 1.0 compiler (or later) for DOS can be downloaded atwww.openwatcom.org: you need at least the following zips fromftp://ftp.openwatcom.org/watcom/zips/(see ftp://ftp.openwatcom.org/watcom/zips/layout.txt)cm_core_all     - Core binaries (All hosts)cm_core_dos     - Core binaries (DOS host)cm_core_doswin  - Core binaries (DOS & Win hosts)cm_clib_hdr     - C runtime library header filescm_clib_a16     - C runtime libraries (16-bit all targets)cm_clib_d16     - C runtime libraries (16-bit DOS)clib_a16        - C runtime libraries (16-bit all targets)clib_d16        - C runtime libraries (16-bit DOS)core_doswin     - Core binaries (DOS & Win16 hosts)c_doswin        - C compiler (DOS & Win16 hosts)ext_dos4gw      - DOS/4GW DOS extenderReplace "dos" by "nt" for an NT/Win9x host or "os2" for an OS/2 host.The host needs to be a 386+ with at least 8MB of memory.If you feel hardy, read on to understand the directory structure.  Amore complete description of the build environment is contained in acompanion book, "The FreeDOS Kernel" (ISBN: 0-87930-436-7) publishedby R&D Books, an imprint of Miller Freeman of Lawrence, Kansas (USA)and distributed in the USA and Canada by Publishers Group West.  Seethe file README.TXT for more details.Directory Structure-------------------fdkernel			root directory  +-----bin			holds image of distribution disk  +-----boot  			boot.bin (boot sector)  +-----docs			documentation directory  +-----drivers			DEVICE.LIB  +-----hdr			common *.h files  +-----kernel			The kernel itself  +-----lib			LIBM.LIB and DEVICE.LIB  +-----sys			SYS.COM and supporting programs  +-----utils			Miscellaneous utilitiesOrganization in a nutshell--------------------------Each component or group of utilities is segregated into its owndirectory. In order to build that component or utility, a makefileexists in the directory that bears the component's or utility'sbasename.Each makefile has at least two targets, production and clean.  Thetarget production builds the expected component or utility and thecomponent clean cleans up the directory for distribution.  Themakefile may have at least one additional target that builds thecomponent.  Study the makefile to better understand this.---------------------------------------------------------------------$Id: build.txt,v 1.14 2004/04/13 23:46:24 bartoldeman Exp $

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -