Print error if max number of jobs is exceeded
[fio.git] / Makefile.Windows
CommitLineData
c2019d39
BC
1CC = gcc
2DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG
3CPPFLAGS= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
4 $(DEBUGFLAGS)
5OPTFLAGS= -O2 -fno-omit-frame-pointer -gstabs+ $(EXTFLAGS)
6CFLAGS = -std=gnu99 -Wwrite-strings -Wall $(OPTFLAGS)
7LIBS = -lpthread -lm -lrt
8PROGS = fio
9SCRIPTS = fio_generate_plots
10
11SOURCE = gettime.c fio.c ioengines.c init.c stat.c log.c time.c filesetup.c \
12 eta.c verify.c memory.c io_u.c parse.c mutex.c options.c rbtree.c \
13 smalloc.c filehash.c profile.c debug.c lib/rand.c \
14 lib/flist_sort.c lib/num2str.c $(wildcard crc/*.c) engines/cpu.c \
15 engines/mmap.c engines/sync.c engines/null.c engines/net.c \
16 engines/net.c engines/windowsaio.c
17
18OBJS = $(SOURCE:.c=.o)
19
20ifneq ($(findstring $(MAKEFLAGS),s),s)
21ifndef V
22 QUIET_CC = @echo ' ' CC $@;
23 QUIET_DEP = @echo ' ' DEP $@;
24endif
25endif
26
27INSTALL = install
28prefix = /usr/local
29bindir = $(prefix)/bin
30mandir = $(prefix)/man
31
32.c.o:
33 $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(CPPFLAGS) $<
34
35fio: $(OBJS)
36 $(QUIET_CC)windres os/windows/version.rc -O coff -o version.o
37 $(QUIET_CC)$(CC) $(CFLAGS) -o $@ $(LIBS) $(OBJS) version.o
38
39depend:
40 $(QUIET_DEP)$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SOURCE) 1> .depend
41
42$(PROGS): depend
43
44all: depend $(PROGS) $(SCRIPTS)
45
46clean:
47 -rm -f .depend cscope.out $(OBJS) $(PROGS) version.o core.* core
48
49cscope:
50 @cscope -b
51
52install: $(PROGS) $(SCRIPTS)
53 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
54 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
55 $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1
56 $(INSTALL) -m 644 fio.1 $(DESTDIR)$(mandir)/man1
57 $(INSTALL) -m 644 fio_generate_plots.1 $(DESTDIR)$(mandir)/man1
58
59ifneq ($(wildcard .depend),)
60include .depend
61endif