# # COMPILER FOR XMW 1.4 # # ********************************* USER DATA ******************************* # XMW language LANGUAGE=English # libraries needed by my functions LIBRARIES="-lm" # host to execute XMW (SG or LX) MACHINE=LX # directory for the exe file EXEDIR="." # compiler COMPILER="gcc" # ******************************** PATHS ****************************** # path and name of the file XMWMain.c XMWMain="./XMWMain.c" # directory of XMW.h and language files DIRincludeXMW="/usr/include/xmw" # directory of libXMW.a (or libXMWgl.a in SG version) DIRlibXMW="." # directory of X11 includes dir DIRincludeX11="/usr/X11R6/include" # directory of X11 lib DIRlibX11="/usr/lib" # directory of Xm includes dir DIRincludeXm="./Xm" # directory of Xm lib DIRlibXm="/usr/X11R6/lib" # *************************************************************************** # *************************************************************************** # *************************************************************************** DIRINCLUDE="-I$DIRincludeXMW -I$DIRincludeXm -I$DIRincludeX11" DIRLIB="-L$DIRlibXMW -L$DIRlibXm -L$DIRlibX11" #set LIBS = "$DIRLIB -lXMWsgi+ -lGLw -lXm -lXt -lGL -lX11 -lPW $LIBRARIES" LIBS="$DIRLIB -lXMW14lx -lGLw -lXm -lXt -lGL -lX11 $LIBRARIES" if [ $MACHINE = SG ]; then if ($1 == "") then echo "compiling XMW (C++, SGI) into the exe file xmw..." $COMPILER $XMWMain -DMENSAJES="" $OPTIONS -lXMWsgi+ -lGLw -lXm -lXt -lGL -lX11 -lPW $LIBRARIES -o $EXEDIR/xmw else echo "compiling $1.c with XMW (C++, SGI).." $COMPILER $1.c -DMENSAJES="" $OPTIONS -lXMWsgi+ -lGLw -lXm -lXt -lGL -lX11 -lPW $LIBRARIES -o $EXEDIR/$1 fi fi if [ $MACHINE = HP ]; then if ($1 == "") then echo "compiling XMW (HP Motif version) into the exe file xmw..." $COMPILER $XMWMain -DMENSAJES="" $OPTIONS -lXMWhp -lXm -lXt -lX11 -lPW $LIBRARIES -o $EXEDIR/xmw else echo "compiling $1.c with XMW (HP Motif version).." $COMPILER $1.c -DMENSAJES="" $OPTIONS -lXMWhp -lXm -lXt -lX11 -lPW $LIBRARIES -o $EXEDIR/$1 fi fi if [ $MACHINE = SUN ]; then if ($1 == "") then echo "compiling XMW (SUN Motif version) into the exe file xmw..." $COMPILER $XMWMain -DMENSAJES="" $OPTIONS -lXMWsun -lXm -lXt -lX11 $LIBRARIES -o $EXEDIR/xmw else echo "compiling $1.c with XMW (SUN Motif version).." $COMPILER $1.c -DMENSAJES="" $OPTIONS -lXMWsun -lXm -lXt -lX11 $LIBRARIES -o $EXEDIR/$1 fi fi echo "MACHINE=$MACHINE" if [ $MACHINE = LX ]; then echo 'in LX' if [ $# = 0 ]; then echo "compiling XMW 1.4 (LINUX, LESSTIF, OPENGL) into the exe file xmw..." $COMPILER $XMWMain -DMENSAJES="" $DIRINCLUDE $LIBS -o $EXEDIR/xmw else echo "compiling $1.c with XMW 1.4 (LINUX, LESSTIF, OPENGL)..." $COMPILER $1.c -DMENSAJES="" $DIRINCLUDE $LIBS -o $EXEDIR/$1 fi fi