# Makefile: a makefile 
# Location: $(TOP)/aumc/register
# 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/register
# Referred-by: $(TOP)/aumc/Makefile.sh

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

CC				= $(PLUSPLUS)

HDRS	      = RegTable.h \
		Rind.h

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

INCLUDES	  = -I../code -I../struct

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

LIBS	      = ../struct/libstruct.a

LINKER	      = $(CC)

MAKEFILE      = Makefile

OBJS	      = RegTable.o

PRINT	      = pr

PROGRAM	      = libreg.a

SRCS	      = RegTable.c

all:		$(PROGRAM)

$(PROGRAM): $(P)    $(OBJS) $(LIBS)
		@echo -n "Loading $(PROGRAM) ... "
		@echo
		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.

RegTable.o : RegTable.c RegTable.h ../struct/OnOff.h Rind.h ../struct/intList.h \
  ../struct/gList.h ../struct/List.h 
