| 1 | These are the steps needed to cross-compile the mjpeg benchmark and add it to the NetBSD/tsarmips disk image. |
| 2 | * create a subdirectory of ''benchs'' (in the src top-directory) holding your |
| 3 | program sources (''mjpeg_het'' in this example) |
| 4 | * in this subdirectory, create a BSD-style Makefile which will build your |
| 5 | sources. You can use [svn:src/benchs/mjpeg_het/Makefile] as a template. |
| 6 | * PROG is the name of the binary created |
| 7 | * SRCS is the list of sources for PROG |
| 8 | * set LDADD and DPADD if you need extra libraries. |
| 9 | More informations about BSD Makefiles can be found in [svn:src/share/mk/bsd.README] |
| 10 | * add the name of your executable to distrib/sets/lists/base/mi |
| 11 | (it will be created in ''/benchs'') |
| 12 | * run '''./tsar-build.sh release''' (or '''./tsar-build.sh -u -j8 release''' if you |
| 13 | want to speed things up) to rebuild the world. |