25 lines
446 B
Makefile
25 lines
446 B
Makefile
CC = gcc
|
|
CFLAGS = -O2 -Wall
|
|
|
|
all: read_slow read_fast read_stdio testfile
|
|
|
|
read_slow: read_slow.c
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
|
|
read_fast: read_fast.c
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
|
|
read_stdio: read_stdio.c
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
|
|
testfile:
|
|
dd if=/dev/urandom of=testfile bs=1M count=1
|
|
|
|
smallfile:
|
|
dd if=/dev/urandom of=smallfile bs=10K count=1
|
|
|
|
clean:
|
|
rm -f read_slow read_fast read_stdio testfile smallfile
|
|
|
|
.PHONY: all clean testfile smallfile
|