svn commit: r255881 - user/pho/stress2
Peter Holm
pho at FreeBSD.org
Thu Sep 26 13:15:34 UTC 2013
Author: pho
Date: Thu Sep 26 13:15:33 2013
New Revision: 255881
URL: http://svnweb.freebsd.org/changeset/base/255881
Log:
Rename Makefile.gnu to GNUmakefile.
Submitted by: Garrett Cooper
Sponsored by: EMC / Isilon storage division
Added:
user/pho/stress2/GNUmakefile
- copied unchanged from r255867, user/pho/stress2/Makefile.gnu
Deleted:
user/pho/stress2/Makefile.gnu
Copied: user/pho/stress2/GNUmakefile (from r255867, user/pho/stress2/Makefile.gnu)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ user/pho/stress2/GNUmakefile Thu Sep 26 13:15:33 2013 (r255881, copy of r255867, user/pho/stress2/Makefile.gnu)
@@ -0,0 +1,28 @@
+#MAKE=gmake
+
+# Gnu Makefile by "Brad Knotwell" <bknotwell at yahoo.com>
+
+LIBOBJS=$(subst .c,.o,$(wildcard lib/*.c))
+TESTDIRS=run swap mkdir creat thr1 syscall rw sysctl tcp udp
+EXES=$(foreach dir,$(TESTDIRS),testcases/$(dir)/$(dir).test)
+OBJS=$(subst .test,.o,$(EXES))
+SRCS=$(subst .o,.c,$(OBJS))
+LIBS=./lib/libstress.a
+CFLAGS=-g -Wall -I./include
+
+all: $(EXES)
+
+lib/libstress.a: lib/libstress.a($(LIBOBJS))
+ ranlib lib/libstress.a
+
+lib/libstress.a(*.o): $(LIBOBJS)
+
+$(OBJS): %.o: %.c
+
+$(EXES): %.test: %.o lib/libstress.a
+
+%.test: %.o
+ $(CC) $(CFLAGS) $(LIBS) $< -o $@
+
+clean:
+ rm -fr $(LIBOBJS) lib/libstress.a $(EXES) $(OBJS)
More information about the svn-src-user
mailing list