# $Id: Makefile,v 1.2 2004/03/25 04:15:22 vickery Exp $

# Makefile for CS-343 simulator project.

#
#   $Log: Makefile,v $
#   Revision 1.2  2004/03/25 04:15:22  vickery
#   Added memory.cc and simulator.h to the project.
#   Implemented the memory operations, completed the load command,
#   and implemented the memory command.
#   Added copyright notices to all files.
#
#
#
#  Copyright (c) 2004, Queens College of the City University
#  of New York.  All rights reserved.
# 
#  Redistribution and use in source and binary forms, with or
#  without modification, are permitted provided that the
#  following conditions are met:
#
#      * Redistributions of source code must retain the above
#        copyright notice, this list of conditions and the
#        following disclaimer.
# 
#      * Redistributions in binary form must reproduce the
#        above copyright notice, this list of conditions and
#        the following disclaimer in the documentation and/or
#        other materials provided with the distribution.  
# 
#      * Neither the name of Queens College of CUNY
#        nor the names of its contributors may be used to
#        endorse or promote products derived from this
#        software without specific prior written permission.
#
#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
#  CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
#  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
#  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
#  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
#  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
#  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
#  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
#  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
#  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
#  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
#  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
#  POSSIBILITY OF SUCH DAMAGE.
#

#   Add other .o files to the following line to set up a project
#   with multiple source modules.  Separate file names with
#   spaces.  To continue the list across lines, end lines with a
#   \ character.
#
#		Note: tab characters in this file are significant and must
#		not be removed!

OBJS = simulator.o memory.o
SRCS = $(OBJS:.o=.cc)
HDRS = simulator.h

#
# The following rule is the default if you just enter a "make"
# command from the project directory.  It recompiles any source
# files that have changed since the last build, and links the
# object files together to produce the executable file named
# "simulator."
simulator:  $(OBJS)
	g++ $(OBJS) -o $@

#
#	The following rule can be used to remove files from the project
#	directory that aren't needed because they can be regenerated if
# needed again.
clean:
	rm -f simulator core *.o *.bak

#
#  The following rule makes sure that all source modules will be
#  recompiled if a header file changes.  It's not really necessary.
depend: $(SRCS) $(HDRS)
	makedepend $(SRCS)

#
# The remainder of this file was generated by makedepend.

# DO NOT DELETE
simulator.o: simulator.cc /usr/include/stdio.h /usr/include/features.h \
  /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
  /usr/lib/gcc-lib/i486-linux/3.3.3/include/stddef.h \
  /usr/include/bits/types.h /usr/include/bits/wordsize.h \
  /usr/include/bits/typesizes.h /usr/include/libio.h \
  /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
  /usr/include/gconv.h /usr/lib/gcc-lib/i486-linux/3.3.3/include/stdarg.h \
  /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
  /usr/include/stdlib.h /usr/include/bits/waitflags.h \
  /usr/include/bits/waitstatus.h /usr/include/endian.h \
  /usr/include/bits/endian.h /usr/include/xlocale.h \
  /usr/include/sys/types.h /usr/include/time.h /usr/include/sys/select.h \
  /usr/include/bits/select.h /usr/include/bits/sigset.h \
  /usr/include/bits/time.h /usr/include/sys/sysmacros.h \
  /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \
  /usr/include/alloca.h /usr/include/string.h simulator.h \
  /usr/include/stdint.h
memory.o: memory.cc /usr/include/stdio.h /usr/include/features.h \
  /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
  /usr/lib/gcc-lib/i486-linux/3.3.3/include/stddef.h \
  /usr/include/bits/types.h /usr/include/bits/wordsize.h \
  /usr/include/bits/typesizes.h /usr/include/libio.h \
  /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
  /usr/include/gconv.h /usr/lib/gcc-lib/i486-linux/3.3.3/include/stdarg.h \
  /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
  /usr/include/stdlib.h /usr/include/bits/waitflags.h \
  /usr/include/bits/waitstatus.h /usr/include/endian.h \
  /usr/include/bits/endian.h /usr/include/xlocale.h \
  /usr/include/sys/types.h /usr/include/time.h /usr/include/sys/select.h \
  /usr/include/bits/select.h /usr/include/bits/sigset.h \
  /usr/include/bits/time.h /usr/include/sys/sysmacros.h \
  /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \
  /usr/include/alloca.h simulator.h /usr/include/stdint.h
