# # "make test-bounded-buffer" to make simulation # "make clean" to remove .o files and executable # CC = gcc CFLAGS = -Wall -pedantic -pthread -std=c99 -O LDLIBS = -pthread utildefs = getint.h timer.h objs = test-bounded-buffer.o bounded-buffer.o exe = test-bounded-buffer $(exe) : $(objs) test-bounded-buffer.o : \ test-bounded-buffer.c test-bounded-buffer.h bounded-buffer.h $(utildefs) bounded-buffer.o : \ bounded-buffer.c test-bounded-buffer.h bounded-buffer.h $(utildefs) .PHONY: clean clean: -rm -v $(objs) $(exe)