X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2FMakefile;h=963a93ee9bad97c1dfa8ad0fdc41e1d0ee0c3619;hp=2d8de7abdf5b72aefd1a14b6fd9cd3f419e30323;hb=cb781c758e5df7ff4c6f655c1e4f9df3043a4be9;hpb=2866c82d598e30604d8a92723c664ee6ced90fb0 diff --git a/engines/Makefile b/engines/Makefile index 2d8de7ab..963a93ee 100644 --- a/engines/Makefile +++ b/engines/Makefile @@ -1,7 +1,6 @@ CC = gcc -CFLAGS = -Wall -O2 -W -shared -rdynamic -fPIC +CFLAGS = -W -Wall -O2 -g -shared -rdynamic -fPIC ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -LIBS = 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 all: depend $(OBJS) @@ -15,6 +14,12 @@ clean: %.o: %.c $(CC) $(ALL_CFLAGS) -o $*.o $< +fio-engine-libaio.o: fio-engine-libaio.c + $(CC) $(ALL_CFLAGS) -laio -o $*.o $< + +fio-engine-posixaio.o: fio-engine-posixaio.c + $(CC) $(ALL_CFLAGS) -lrt -o $*.o $< + ifneq ($(wildcard .depend),) include .depend endif