June 21, 2006

xiaoxiao2021-04-04  276

Recently, I stayed for a period of time. In addition to rest, I have a rest. I have been a week. I have not adapted to the school's life. In addition to sleeping, I watched the World Cup. Haha, you have to have a good attitude.

Look at something, even if you write it, don't forget it. In order to watch a BAT file, you simply summarize all file types.

1, what is a BAT file

The BAT file is a file format in the Windows system called a batch file. Simply, it is written in a text file that needs to be executed in a text file that is called BAT in order. Double-click or dos command through the mouse to execute the BAT file, it is equivalent to executing a series of DOS commands.

2, what is a Sources file

Sources files and make files are similar to specify files that need to be compiled and the library that needs to be connected.

Sources' file format: TargetName = drivername, this parameter is used to specify the generated device driver name (without the suffix name), the resulting file is drivername.sys. TargetPath =. / Lib, this parameter is used to specify the generated device The path stored by the driver. Generally, it is useful to generate many different target objects, and the device driver is generally used by many different target objects. Include = Path1; Path2; ..., this parameter is optional, The search path for specifying other #include files. TargetLibs = lib1; lib2; ..., this parameter is optional for specifying another search path for other lib library files. Sourcees = file1.c file2.c. .., this parameter is used to specify all source file names that need to be compiled, the suffix name cannot be omitted, and the file name is separated from the space.

3, what is Dir file

DIRS file format: DIRS file is used to specify the subdirectory that must be created in the current directory. The content of the DIRS file consists of a list of spaces separated by spaces, / can be used to represent the continuation of the top line. DIRS = / subdir1 / subdir2 / subdir3 If only DIRS files are available without Sources, there is no source file. Require compilation, but you need to create a subdirectory in the current directory. Only Sources files do not have DIRS, indicating that the active file needs to be compiled but does not need to create a subdirectory. The two indicate that the active file needs to be compiled and need to create a subdirectory.

For all drivers, Makefile is the same, and Microsoft also warned not to edit this file. If you need it, you can edit the Sources file to achieve the same effect.

转载请注明原文地址:https://www.9cbs.com/read-131897.html

New Post(0)