19 lines
449 B
Makefile
19 lines
449 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
|
|
gcc $(INC) -c -o build/shared.o src/shared.c
|
|
|
|
link:
|
|
gcc -o bin/driver.out build/driver.o build/shared.o
|
|
gcc -o bin/producer.out build/producer.o build/shared.o
|
|
gcc -o bin/consumer.out build/consumer.o build/shared.o
|
|
|
|
clean:
|
|
rm build/*.o
|
|
rm bin/*.out
|