HPC-Testing/sort algorithm/Makefile
2025-02-23 14:38:55 +08:00

22 lines
No EOL
391 B
Makefile

CC=gcc
CFLAGS=-O3
SIZES=1024 8192 65536 524288 4194304 16777216
all: generator create_dirs
generator: generate_data.c
$(CC) $(CFLAGS) -o generate_data generate_data.c
create_dirs:
@mkdir -p dataset
@for size in $(SIZES); do \
mkdir -p dataset/$$size; \
echo "Created directory for size: $$size"; \
done
clean:
rm -f generate_data
rm -rf dataset
.PHONY: all create_dirs clean