(original) (raw)

# 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)(OBJS) (OBJS)(EXEC) %.o: %.c (CC)−c−o(CC) -c -o (CC)co@ << <(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(CC) -o (CC)o@ (CFLAGS)(CFLAGS) (CFLAGS)^ .PHONY: all clean clean: rm -f (EXEC)(EXEC) (EXEC)(OBJS) distclean: rm -f (EXEC)(EXEC) (EXEC)(OBJS) *~