# File:    CS364/2000S/Examples/HW2/Makefile
# Author:  Samuel A. Rebelsky
# Version: Who cares
#
# A makefile for homework 2.  Note that I'm taking advantage of
# make's built-in knowledge of how to compile C files.

# These are essentially variable declarations.  They tell make
# what C compiler to use and what flags to pass to the compiler
# by default.
CC=gcc
CFLAGS=-Wall -DDEBUG

# Here's where I tell make my default target.  Remember that make
# makes the first thing in the file by default.
default: batchtest

# Some simple dependencies.  Make is smart enough to know how
# to compile the .c files (and to know that .o files depend on
# the corresponding .c files).
stringlist.o: stringlist.h debug.h
stringlistio.o: stringlist.h
batchtest.o: stringlist.h

# The simple batch test program.
batchtest: batchtest.o stringlist.o stringlistio.o
	$(CC) -o batchtest batchtest.o stringlist.o stringlistio.o
