#!/bin/sh # /***************************************************************/ # /* */ # /* alzam libOS2d module */ # /* */ # /***************************************************************/ # LIBOS2D_NAME="libOS2d" # // allow alzam to use this module ALZAM_MODULES="$ALZAM_MODULES $LIBOS2D_NAME" # // init env. vars for lib OS 2d LIBOS2D_SRC_PATH="$WORK_PATH/""$LIBOS2D_NAME""$SCOL_VERSION" LIBOS2D_SHARED_LIB="$LIBOS2D_NAME""$SCOL_VERSION""$SCOL_RELEASE"".so" # // module implementation function libOS2d_setFlags () { LIBOS2D_CFLAGS="-pipe -I /usr/X11R6/include/ -I $LIBOS2D_SRC_PATH -I $USM_SRC_PATH/ -I $USM_SRC_PATH/kernel/ -I $COMMON_LIB_PATH `gtk-config --cflags`" LIBOS2D_LFLAGS="-ljpeg /usr/lib/libpng.a" } function libOS2d () { libOS2d_setFlags; # // env for Makefile CFLAGS="$LIBOS2D_CFLAGS" LFLAGS="$LIBOS2D_LFLAGS" SRC_PATH="$LIBOS2D_SRC_PATH" TARGET_PATH="$LIBOS2D_SRC_PATH" TARGET_SCOL_PATH="$SCOL_PLUGINS_PATH" TARGET_MAKE="gcc -shared" TARGET="$LIBOS2D_SHARED_LIB" }