#!/bin/sh # /***************************************************************/ # /* */ # /* alzam lib2d module */ # /* */ # /***************************************************************/ # LIB2D_NAME="lib2d" # // allow alzam to use this module ALZAM_MODULES="$ALZAM_MODULES $LIB2D_NAME" # // init lib2d env. vars LIB2D_SRC_PATH="$WORK_PATH/""$LIB2D_NAME""$SCOL_VERSION" LIB2D_SHARED_LIB="$LIB2D_NAME""$SCOL_VERSION""$SCOL_RELEASE"".so" # // module implementation function lib2d_setFlags () { LIB2D_CFLAGS="-pipe -D SCOL -I /usr/X11R6/include/ -I $USM_SRC_PATH -I $USM_SRC_PATH/kernel -I $LIBOS2D_SRC_PATH -I $LIB2D_SRC_PATH/x `gtk-config --cflags`" LIB2D_LFLAGS=" " } function lib2d () { lib2d_setFlags; # // env. for Makefile CFLAGS="$LIB2D_CFLAGS" LFLAGS="$LIB2D_LFLAGS" SRC_PATH="$LIB2D_SRC_PATH" TARGET_PATH="$LIB2D_SRC_PATH" TARGET_SCOL_PATH="$SCOL_PLUGINS_PATH" TARGET_MAKE="gcc -shared" TARGET="$LIB2D_SHARED_LIB" }