#!/bin/sh # /***************************************************************/ # /* */ # /* alzam lib3d module */ # /* */ # /***************************************************************/ # LIB3D_NAME="lib3d" # // allow alzam to use this module ALZAM_MODULES="$ALZAM_MODULES $LIB3D_NAME" # // init env. vars for lib 3d LIB3D_SRC_PATH="$WORK_PATH/""$LIB3D_NAME""$SCOL_VERSION" LIB3D_SHARED_LIB="$LIB3D_NAME""$SCOL_VERSION""$SCOL_RELEASE"".so" # // module implementation function lib3d_setFlags () { LIB3D_CFLAGS="-pipe -I $LIBOS2D_SRC_PATH -I $USM_SRC_PATH -I $USM_SRC_PATH/kernel -I $COMMON_LIB_PATH -I $LIB3D_SRC_PATH -I $LIB3D_SRC_PATH/loaders/ `gtk-config --cflags`" LIB3D_LFLAGS="/usr/lib/libstdc++-libc6.2-2.a.3 /usr/lib/libGL.so /usr/lib/libGLU.so -L/usr/X11R6/lib -lXxf86vm" } function lib3d () { lib3d_setFlags; # // env. for Makefile CFLAGS="$LIB3D_CFLAGS" LFLAGS="$LIB3D_LFLAGS" SRC_PATH="$LIB3D_SRC_PATH" TARGET_PATH="$LIB3D_SRC_PATH" TARGET_SCOL_PATH="$SCOL_PLUGINS_PATH" TARGET_MAKE="gcc -shared" TARGET="$LIB3D_SHARED_LIB" }