Bring in FreeBSD's stress2 stress testing suite.
[dragonfly.git] / test / stress / stress2 / Makefile.gnu
1 #MAKE=gmake
2
3 # Gnu Makefile by "Brad Knotwell" <bknotwell@yahoo.com>
4
5 LIBOBJS=$(subst .c,.o,$(wildcard lib/*.c))
6 TESTDIRS=run swap mkdir creat thr1 syscall rw sysctl tcp udp
7 EXES=$(foreach dir,$(TESTDIRS),testcases/$(dir)/$(dir).test)
8 OBJS=$(subst .test,.o,$(EXES))
9 SRCS=$(subst .o,.c,$(OBJS))
10 LIBS=./lib/libstress.a
11 CFLAGS=-g -Wall -I./include
12
13 all: $(EXES)
14
15 lib/libstress.a: lib/libstress.a($(LIBOBJS))
16         ranlib lib/libstress.a
17
18 lib/libstress.a(*.o): $(LIBOBJS)
19
20 $(OBJS): %.o: %.c
21
22 $(EXES): %.test: %.o lib/libstress.a
23
24 %.test: %.o
25         $(CC) $(CFLAGS) $(LIBS) $< -o $@
26
27 clean:
28         rm -fr $(LIBOBJS) lib/libstress.a $(EXES) $(OBJS)