all: 01-message_queue_send 02-message_queue_receive 03-semaphore_p_operation 04-semaphore_v_operation 05-shared_memory_write 06-shared_memory_read

01-message_queue_send: 01-message_queue_send.c
	gcc -Wall -o 01-message_queue_send 01-message_queue_send.c

02-message_queue_receive: 02-message_queue_receive.c
	gcc -Wall -o 02-message_queue_receive 02-message_queue_receive.c

03-semaphore_p_operation: 03-semaphore_p_operation.c
	gcc -Wall -o 03-semaphore_p_operation 03-semaphore_p_operation.c

04-semaphore_v_operation: 04-semaphore_v_operation.c
	gcc -Wall -o 04-semaphore_v_operation 04-semaphore_v_operation.c

05-shared_memory_write: 05-shared_memory_write.c
	gcc -Wall -o 05-shared_memory_write 05-shared_memory_write.c

06-shared_memory_read: 06-shared_memory_read.c
	gcc -Wall -o 06-shared_memory_read 06-shared_memory_read.c

clean_all:
	rm -f 01-message_queue_send 02-message_queue_receive 03-semaphore_p_operation 04-semaphore_v_operation 05-shared_memory_write 06-shared_memory_read
