[PATCH] Remember to check ioops version in loaded module
[fio.git] / Makefile.solaris
CommitLineData
2c0ecd28
JA
1CC = gcc
2CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
3PROGS = fio
4SCRIPTS = fio_generate_plots
5
6OBJS = fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o
7
8all: depend $(PROGS) $(SCRIPTS)
9
10fio: fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o
11 $(CC) $(CFLAGS) -o $@ $(OBJS) -lc -lpthread -lm -laio -lrt
12
13clean:
14 -rm -f *.o .depend cscope.out $(PROGS)
15
16depend:
17 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
18
19cscope:
20 @cscope -b
21
22INSTALL = install
23prefix = /usr/local
24bindir = $(prefix)/bin
25
26install: $(PROGS) $(SCRIPTS)
27 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
28 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)