| 1 | CC = gcc |
| 2 | CFLAGS = -Wall -O2 -W -shared -rdynamic -fPIC |
| 3 | ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
| 4 | LIBS = |
| 5 | OBJS = fio-engine-sync.o fio-engine-splice.o fio-engine-mmap.o fio-engine-libaio.o fio-engine-posixaio.o fio-engine-sg.o fio-engine-cpu.o |
| 6 | |
| 7 | all: depend $(OBJS) |
| 8 | |
| 9 | depend: |
| 10 | @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend |
| 11 | |
| 12 | clean: |
| 13 | -rm -f *.o $(OBJS) .depend |
| 14 | |
| 15 | %.o: %.c |
| 16 | $(CC) $(ALL_CFLAGS) -o $*.o $< |
| 17 | |
| 18 | ifneq ($(wildcard .depend),) |
| 19 | include .depend |
| 20 | endif |