#!/bin/sh # /***************************************************************/ # /* */ # /* alzam usm module */ # /* */ # /***************************************************************/ # USM_NAME="usm" # // allow alzam to use this module ALZAM_MODULES="$ALZAM_MODULES $USM_NAME" # // env. for lib sql USM_SRC_PATH="$WORK_PATH/""$USM_NAME""$SCOL_VERSION" USM_BINARY="$USM_NAME""$SCOL_VERSION""$SCOL_RELEASE" function usm_setFlags () { USM_CFLAGS="-pipe `gtk-config --cflags` -I $USM_SRC_PATH -I $USM_SRC_PATH/kernel -I $USM_SRC_PATH/kernel/vm -I $USM_SRC_PATH/kernel/compiler -I $LIBOS2D_SRC_PATH" USM_LFLAGS="`gtk-config --libs` -lz" } # // module implementation function usm () { usm_setFlags; CFLAGS="$USM_CFLAGS" LFLAGS="$USM_LFLAGS" SRC_PATH="$USM_SRC_PATH" TARGET_PATH="$USM_SRC_PATH" TARGET_SCOL_PATH="$SCOL_PATH" TARGET_MAKE="gcc" TARGET="$USM_BINARY" }