diff --git a/source_codes/queues/.gitignore b/source_codes/queues/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..3d6d9e6acc1a07019b5eb6b37d1255dbfdd66d7d --- /dev/null +++ b/source_codes/queues/.gitignore @@ -0,0 +1,4 @@ +queue_array_int.o +queue_array_int_partiel.o +queue_ptr_int.o +queue_ptr_int_partiel.o diff --git a/source_codes/queues/Makefile b/source_codes/queues/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..9570bd9ae1bfd0c46a97778c7e0ecdab6846c6b7 --- /dev/null +++ b/source_codes/queues/Makefile @@ -0,0 +1,18 @@ +CC:=gcc +# SAN:=-fsanitize=address +CFLAGS:=-Wall -Wextra -pedantic -g $(SAN) +LDFLAGS:=-lm $(SAN) +SOURCES := $(wildcard *.c) +OBJECTS := $(patsubst %.c, %.o, $(SOURCES)) + +all: $(OBJECTS) + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ + @echo $@ >> .gitignore + +.PHONY: clean all + +clean: + rm -f *.o queue_ptr_int .gitignore +