#ifndef XP_OS2_VACPP #ifndef max #define max(a, b) (((a) > (b)) ? (a) : (b)) #endif #ifndef min #define min(a, b) (((a) < (b)) ? (a) : (b)) #endif #endif /* XP_OS2_VACPP */
Open Toolkit\h\stack16\utils.h in an editor. Search for "strcasecmp" and add the following bold lines to the code:
#ifndef XP_OS2_VACPP #define strcasecmp(x,y) strcmpi((x),(y)) #define strncasecmp(x,y,z) strnicmp(x,y,z) #endif /* XP_OS2_VACPP */
On your boot drive, go to the tcpip/bin directory, and if you have ln.exe, rename it to ln-old.exe.
SETMOZENV.CMD uses environment variables to locate the various tools that are needed for the build. The following environment variables should be set to point to where your tools are located:
GLIB LIBIDL AUTOCONF EMX VACPP365 MOZTOOLSNote that if you have all of your tools directory of off your root directory, you do not need to set these values. When you have set up the variables, type:
SETMOZENV vacpp
cvs checkout mozilla/client.mkThen type:
cd mozilla gmake -f client.mk pull_all
We strongly recommend that you build with an obj directory
Here is what our typical .mozconfig files look like for a debug build:
# sh # Build configuration script # # See http://www.mozilla.org/build/unix.html for build instructions. # # Options for client.mk. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj # Options for 'configure' (same as command-line options). #ac_add_options --disable-tests #ac_add_options --enable-optimize #ac_add_options --disable-debug ac_add_options --enable-crypto ac_add_options --with-extensions=all
gmake -f client.mk build_allThe build itself is actually two steps, an export step that builds required tools and copies headers into the dist, and a libs step that actually builds the code. If you encounter a situation where the export step appears to complete, but the libs step does not begin, you can type
gmake libsto continue the build.
The executable is located in mozilla/dist/bin. Type:
mozillato run it.