welcome: please sign in

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
What is the Admin password?

location: How to add a new module into BDF package?

How to add new a module into BDF package?

 Add a new module into BDF package takes several steps.

1 Prepare you source codes and store it in a directory named "newmodule" .

2 Copy the directory "newmodule" into BDF source code directory $BDFHOME/source and add it to svn version control by "svn add newmodule".

3 Copy a Makefile from any BDF module directory to "newmodule" to compile and link you program.

4 If you program is linked correctly, you will have a executable file name "newmodule.x" in the directory $BDFHOME/bin.

5 Append a line with the content "newmodule" into the file "$BDFHOME/database/program.dat". This file defines all available BDF modules which will be executed by BDF driver.

6 Edit the file "$BDFHOME/database/xianest.mh". Add your module name "newmodule "into variable PRGLIST.

7 Edit the file "$BDFHOME/configure.in", add you module name "newmodule" into variable "xianlistf"

8 Goto directory "$BDFHOME" and run command "autoconf" to generate new configure file.

After add module and generate new configure file, you can configure BDF package and compile BDF to check if your module is compiled correctly.