#!/bin/sh

gcc debugMod.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc linkedlist.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc stack.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc queue.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc strbuffer.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc sighandlers.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc clparser.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc shui.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc control.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc builtin.c -c

if [ $? != 0 ] ; then exit 1; fi

gcc shell.c -c

if [ $? != 0 ] ; then exit 1; fi


gcc pash.c debugMod.o sighandlers.o shui.o control.o clparser.o linkedlist.o stack.o queue.o strbuffer.o shell.o builtin.o -o pash



