#
# Makefile for CS 70 Assignment 1, Spring 2002
# 
# You do not need to understand this file to use it.  To build your software
# just type:
#
#     make
#

# ----- Make Macros -----

CXXFLAGS = -g -pedantic -Wall -W

# ----- Make rules -----

all:	factorial mytests

factorial:	bigint.o factorial.o
	g++3 -o factorial factorial.o bigint.o

mytests:	bigint.o mytests.o
	g++3 -o mytests mytests.o bigint.o

bigint.o:	bigint.cpp bigint.hpp
	g++3 -c $(CXXFLAGS) bigint.cpp

factorial.o:	factorial.cpp bigint.hpp
	g++3 -c $(CXXFLAGS) factorial.cpp

mytests.o:	mytests.cpp bigint.hpp
	g++3 -c $(CXXFLAGS) mytests.cpp


# N.B.  In the rules above, lines that are indented are indented using a
# single a tab char (ASCII character 8), and not using spaces.  Do not use
# spaces to indent rule actions.
