#!/bin/bash
#
# ./build_ds.sh -DEBUG enables debug mode.
# This build script builds in the DSLinux xsh cross compiler shell ONLY
#
$CC $CFLAGS $1 -D_REENTRANT -o proos.o -c proos.c
$CC $CFLAGS -o main.o -c main.c
$CC $CFLAGS proos.o main.o -o main -lpthread
rm *.o
