summaryrefslogtreecommitdiff
path: root/src/test/thread/Makefile
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-02-04 01:00:02 +0000
committerBruce Momjian <bruce@momjian.us>2006-02-04 01:00:02 +0000
commit9e66c3e6fe4f36e061a4d265f8e514c80ec11ef8 (patch)
tree708b167bb28c2588ffc4ab76f5ef1f05fb51a827 /src/test/thread/Makefile
parent0e04982e78e9d1e5d17e4dc23ffcdba764a54f00 (diff)
downloadpostgresql-9e66c3e6fe4f36e061a4d265f8e514c80ec11ef8.tar.gz
Move thread_test directory from /tools to /test so source-only tarballs
have the directory for the configure test.
Diffstat (limited to 'src/test/thread/Makefile')
-rw-r--r--src/test/thread/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/thread/Makefile b/src/test/thread/Makefile
new file mode 100644
index 0000000000..98e1839fdf
--- /dev/null
+++ b/src/test/thread/Makefile
@@ -0,0 +1,24 @@
+#-------------------------------------------------------------------------
+#
+# Makefile for tools/thread
+#
+# Copyright (c) 2003-2005, PostgreSQL Global Development Group
+#
+# $PostgreSQL: pgsql/src/test/thread/Makefile,v 1.1 2006/02/04 01:00:02 momjian Exp $
+#
+#-------------------------------------------------------------------------
+
+subdir = src/tools/thread
+top_builddir = ../../..
+include $(top_builddir)/src/Makefile.global
+
+override CFLAGS += $(PTHREAD_CFLAGS)
+
+all: thread_test
+
+thread_test: thread_test.o
+# no need for $LIBS, might not be compiled yet
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(PTHREAD_LIBS) -o $@
+
+clean distclean maintainer-clean:
+ rm -f thread_test$(X) thread_test.o