You can tell when a program uses imake because it will contain at least one file with the filename of, Imakefile.
In order to compile software using the Imake system you'll first need to modify some Solaris files so they work with GCC.
First of all copy the files from /usr/openwin/lib/X11/config/ to a backup directory.
Next make the following changes to the following files:
Changes to site.def
uncomment the HasGcc2 section
C uses the convention of /* */ to denote a comment. Simply remove the lines above and below the HasGcc2 section.
Next look for the following line:
/* #define PreIncDir /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.5.8/include */
Uncomment this line by removing the first two, and the last two characters, and then adjust the path so that it points to your include directory. Use the one that is now uncommented as a guide.
Changes to sun.cf
In this file look for the following line:
#define OptimizedCDebugFlags -O2 -msupersparc
You can adjust this line to set the optimizations that you would like GCC to use.
Changes to svr4.cf
Check the path and binary names of the programs listed, adjust if you need to.
After you've downloaded and unpacked the program that you want to compile, run:
xmkmf -a
make all
make install
make install will place the resultant binaries in /usr/openwin/bin. This should already be in your path so just typing the binary filename should execute the program.
Next Section: All I Got Is A Makefile Instructions (8 of 11)