producers-consumers/Makefile

16 lines
300 B
Makefile

INC := -I include
all: compile exec
compile:
gcc $(INC) -c -o build/driver.o src/driver.c
gcc $(INC) -c -o build/producer.o src/producer.c
gcc $(INC) -c -o build/consumer.o src/consumer.c
exec:
gcc -o bin/driver.out build/*.o
./bin/driver.out
clean:
rm driver.out consumer.out producer.out