22 lines
409 B
Makefile
22 lines
409 B
Makefile
CC=gcc
|
|
CFLAGS=-O3
|
|
|
|
SIZES=1024 32768 1048576 16777216 67108864 134217728 268435456
|
|
|
|
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
|