# DO NOT MODIFY
CC	=	gcc
CFLAGS	=	-g -Og -Wall

EXEC = bitmap_test
OBJS := \
	bitmap.o \
	bitmap_test.o \
	# intentionally left blank so last line can end in a \

all: $(OBJS) $(EXEC)
%.o: %.c
	$(CC) -c -o $@ $< $(CFLAGS)

# bitmap_test has a main method that should be used to test the functionality of
# your bitmap operations. As you implement your bitmap, be sure to incrementally
# test each function before moving to the next one.
# This rule compiles an executable called "bitmap_test"
bitmap_test: bitmap.o bitmap_test.o
	$(CC) -o $@ $(CFLAGS) $^

.PHONY: all clean

clean:
	rm -f $(EXEC) $(OBJS)

distclean:
	rm -f $(EXEC) $(OBJS) *~
