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

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

CC				= $(PLUSPLUS)

HDRS	      = Array.h \
		ArrayIt.h \
		List.h \
		MHList.h \
		Name.h \
		OnOff.h \
		cstring.h \
		freshString.h \
		gArray.h \
		gArrayIt.h \
		gList.h \
		gMHList.h \
		indent.h \
		intList.h \
		intMHList.h \
		numlabel.h

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

INCLUDES	  =

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

LIBS	      = 

LINKER	      = $(CC)

MAKEFILE      = Makefile

OBJS	      = ArrayIt.o \
		List.o \
		MHList.o \
		Name.o \
		cstring.o \
		indent.o \
		numlabel.o

PROGRAM	      = libstruct.a

SRCS	      = ArrayIt.c \
		List.c \
		MHList.c \
		Name.c \
		cstring.c \
		indent.c \
		numlabel.c

all:		$(PROGRAM)

$(PROGRAM):     $(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.

ArrayIt.o : ArrayIt.c ArrayIt.h 
List.o : List.c List.h 
MHList.o : MHList.c MHList.h 
Name.o : Name.c Name.h gList.h List.h 
cstring.o : cstring.c cstring.h 
indent.o : indent.c indent.h 
numlabel.o : numlabel.c numlabel.h Name.h gList.h List.h 
