producers-consumers/Makefile

18 lines
320 B
Makefile

INC := -I include
all: compile link
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
link:
gcc -o bin/driver.out build/*.o
exec: compile link
./bin/driver.out
clean:
rm driver.out consumer.out producer.out