Jens Axboe | 2866c82 | 2006-10-09 15:57:48 +0200 | [diff] [blame] | 1 | CC = gcc |
Jens Axboe | aad39f4 | 2006-10-13 09:06:13 +0000 | [diff] [blame^] | 2 | CFLAGS = -Wall -O2 -g -shared -rdynamic -fPIC |
Jens Axboe | 2866c82 | 2006-10-09 15:57:48 +0200 | [diff] [blame] | 3 | ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
Jens Axboe | 2866c82 | 2006-10-09 15:57:48 +0200 | [diff] [blame] | 4 | 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 |
| 5 | |
| 6 | all: depend $(OBJS) |
| 7 | |
| 8 | depend: |
| 9 | @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend |
| 10 | |
| 11 | clean: |
| 12 | -rm -f *.o $(OBJS) .depend |
| 13 | |
| 14 | %.o: %.c |
| 15 | $(CC) $(ALL_CFLAGS) -o $*.o $< |
| 16 | |
| 17 | ifneq ($(wildcard .depend),) |
| 18 | include .depend |
| 19 | endif |