# Makefile: a makefile 
# Location: $(TOP)/aumc/code
# Executed-By: $(TOP)/aumc/Makefile

# parser generator
YACC			=bison -y

# g++ path
PLUSPLUS		=g++

# options for g++
OPTION			=

# top directory of source files
TOP				=/home/csls4/konishi/aum

# a script for 'make depend'
MAKEDEPEND		=csh -f /home/csls4/konishi/aum/pas/etc/makedepend

# a script to make directories
MKDIRP			=sh /home/csls4/konishi/aum/pas/etc/mkdir-p

# directory where aumc is installed
INSTALLBINDIR	=/tmp/aum/bin

# Macro definition to tell g++ that new iostream library is available
STREAMLIB		=-DIOSTREAM_2_0

# Makefile.in: a skelton for a makefile
# Location: $(TOP)/aumc/code
# Referred-by: $(TOP)/aumc/Makefile.sh

.c.o:
		$(CC) $(CFLAGS) -c $<

CC				= $(PLUSPLUS)

SYSINCLUDES		= -I/usr/gnu/lib/g++-include

INCLUDES		=  -I../register -I../struct

CFLAGS			= $(OPTION) $(STREAMLIB) $(INCLUDES)

LIBS			= ../register/libreg.a ../struct/libstruct.a

HDRS	      = CDactivate.h \
		CDadd.h \
		CDand.h \
		CDbow.h \
		CDcaj.h \
		CDcar.h \
		CDcari.h \
		CDcaro.h \
		CDcatom.h \
		CDcbnkstr.h \
		CDcbool.h \
		CDcdouble.h \
		CDcdr.h \
		CDcdri.h \
		CDcdro.h \
		CDcfloat.h \
		CDcinstance.h \
		CDcint.h \
		CDclass.h \
		CDclassof.h \
		CDclistii.h \
		CDclistio.h \
		CDclistoi.h \
		CDclistoo.h \
		CDclocinst.h \
		CDclose.h \
		CDcmj.h \
		CDconnect.h \
		CDcsink.h \
		CDcstring.h \
		CDcvector.h \
		CDcvol.h \
		CDcvol2.h \
		CDdescend.h \
		CDdiv.h \
		CDelti.h \
		CDelto.h \
		CDeq.h \
		CDequal.h \
		CDfgncall.h \
		CDge.h \
		CDget_self.h \
		CDgetinlet.h \
		CDgetoutlet.h \
		CDgetself.h \
		CDgt.h \
		CDif_equal.h \
		CDif_ge.h \
		CDif_gt.h \
		CDif_le.h \
		CDif_lt.h \
		CDif_nequal.h \
		CDif_true.h \
		CDifbuiltin.h \
		CDifsimple.h \
		CDisbuiltin.h \
		CDissimple.h \
		CDjump.h \
		CDlabel.h \
		CDle.h \
		CDlt.h \
		CDminus.h \
		CDmod.h \
		CDmove.h \
		CDmul.h \
		CDnequal.h \
		CDnot.h \
		CDor.h \
		CDruntime.h \
		CDsend.h \
		CDsend_self.h \
		CDset_arg.h \
		CDsetcari.h \
		CDsetcaro.h \
		CDsetcdri.h \
		CDsetcdro.h \
		CDseti.h \
		CDsetinlet.h \
		CDseto.h \
		CDsetoutlet.h \
		CDshow.h \
		CDshtl.h \
		CDshtr.h \
		CDsplit_n.h \
		CDsub.h \
		CDterminate.h \
		CDwait.h \
		CDwho.h \
		CDxor.h \
		LabelName.h \
		PIclass.h \
		PIclassref.h \
		PIclsmtd.h \
		PIcomment.h \
		PIdftmtd.h \
		PIend.h \
		PIentry.h \
		PIfgndef.h \
		PIinlet.h \
		PImethod.h \
		PIoutlet.h \
		PIpid.h \
		PIsuper.h \
		PIvol.h \
		inst.h \
		inst2R.h \
		inst2R2L.h \
		inst3R.h \
		instNone.h \
		instR.h \
		instR2L.h

LINKER	      = $(CC)

MAKEFILE      = Makefile

OBJS	      = CDcvol.o \
		CDfgncall.o \
		CDsend.o \
		CDsend_self.o \
		LabelName.o \
		PImethod.o \
		PIpid.o \
		inst.o \
		inst2R2L.o \
		instR2L.o

PROGRAM	      = libCD.a

SRCS	      = CDcvol.c \
		CDfgncall.c \
		CDsend.c \
		CDsend_self.c \
		LabelName.c \
		PImethod.c \
		PIpid.c \
		inst.c \
		inst2R2L.c \
		instR2L.c

all:		$(PROGRAM)

$(PROGRAM):     $(OBJS) $(LIBS)
		@echo -n "Loading $(PROGRAM) ... "
		ar uc $(PROGRAM) $(OBJS)
		ranlib $(PROGRAM)
		@echo "done"

clean:;		rm -f $(PROGRAM) *~ *.o TAGS

depend:
		$(MAKEDEPEND) $(INCLUDES) $(SRCS)


# DO NOT DELETE THIS LINE -- make depend depends on it.

CDcvol.o : CDcvol.c ../struct/intList.h ../struct/gList.h ../struct/List.h CDcvol.h \
  inst.h ../register/Rind.h 
CDfgncall.o : CDfgncall.c ../struct/intList.h ../struct/gList.h ../struct/List.h \
  CDfgncall.h inst.h ../register/Rind.h LabelName.h ../struct/Name.h 
CDsend.o : CDsend.c CDsend.h inst.h ../struct/gList.h ../struct/List.h ../register/Rind.h \
  LabelName.h ../struct/Name.h ../struct/intList.h 
CDsend_self.o : CDsend_self.c CDsend_self.h inst.h ../struct/gList.h ../struct/List.h \
  ../register/Rind.h LabelName.h ../struct/Name.h CDclose.h instR.h ../struct/intList.h \
  ../register/RegTable.h ../struct/OnOff.h 
LabelName.o : LabelName.c LabelName.h ../struct/Name.h ../struct/gList.h ../struct/List.h 
PImethod.o : PImethod.c PImethod.h inst.h ../struct/gList.h ../struct/List.h \
  ../register/Rind.h LabelName.h ../struct/Name.h 
PIpid.o : PIpid.c PIpid.h inst.h ../struct/gList.h ../struct/List.h ../register/Rind.h \
  LabelName.h ../struct/Name.h 
inst.o : inst.c inst.h ../struct/gList.h ../struct/List.h ../register/Rind.h 
inst2R2L.o : inst2R2L.c ../struct/Name.h ../struct/gList.h ../struct/List.h \
  inst2R2L.h inst.h ../register/Rind.h LabelName.h 
instR2L.o : instR2L.c ../struct/Name.h ../struct/gList.h ../struct/List.h instR2L.h \
  inst.h ../register/Rind.h LabelName.h 
