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