Rogue Class Linux Download Login

Artifact Content

Artifact 449834a7428dc5270d0c6b03210f5b1c99326f78:


#!/bin/sh

CC=${CC:-cc}
SDLCONFIG=${SDLCONFIG:-sdl-config}

# set build flags
CFLAGS="$CFLAGS -fPIC -g $($SDLCONFIG --cflags)"
LDLIBS="$($SDLCONFIG --libs) -lSDL_image"

# clean previous build
source ./clean.sh

# tranform agar C headers for safe consumption by swig
# this creates the dimage directory
tclsh gen-dimage.tcl

# use swig to generate TCL module for Unix
swig -tcl -namespace -pkgversion $(tclsh print-version.tcl) dimage.i
$CC -c $CFLAGS dimage.c
$CC -c $CFLAGS -DHAVE_64BIT dimage_wrap.c
$CC -shared -o dimage.so dimage.o dimage_wrap.o $LDFLAGS $LDLIBS