X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=Makefile.FreeBSD;h=b877901a2e43f639ccaf982818367167792d1ff1;hp=a2232890d24eea3374e6042717abfe57426a3ad6;hb=10cad1aa7af1c47be6655cff0438c46843964294;hpb=32cd46a085ac60f4f8b085e2d65ebfc6100bb8c5 diff --git a/Makefile.FreeBSD b/Makefile.FreeBSD index a2232890..b877901a 100644 --- a/Makefile.FreeBSD +++ b/Makefile.FreeBSD @@ -2,17 +2,26 @@ CC = gcc CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 PROGS = fio SCRIPTS = fio_generate_plots +OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \ + filesetup.o eta.o verify.o memory.o io_u.o parse.o + +OBJS += engines/cpu.o +OBJS += engines/mmap.o +OBJS += engines/posixaio.o +OBJS += engines/sync.o +OBJS += engines/null.o +OBJS += engines/net.o all: depend $(PROGS) $(SCRIPTS) -fio: fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o - $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -laio -lm -lrt +fio: $(OBJS) + $(CC) $(CFLAGS) -o $@ $(OBJS) -lpthread -lm -ldl -lrt clean: -rm -f *.o .depend cscope.out $(PROGS) depend: - @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend + @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend cscope: @cscope -b