1
#-------------------------------------------------------------------------
3
# Makefile for tools/thread
5
# Copyright (C) 2003 by PostgreSQL Global Development Team
7
# $Header: /cvsroot/pgsql/src/tools/thread/Makefile,v 1.2 2003/09/27 16:24:45 momjian Exp $
9
#-------------------------------------------------------------------------
12
top_builddir = ../../..
13
include $(top_builddir)/src/Makefile.global
15
ifeq ($(THREAD_SUPPORT), no)
16
$(error Your platform does not support threads)
18
ifeq ($(THREAD_SUPPORT), )
19
$(error You have not configured your template/$$port file. See the README)
22
override CFLAGS += $(THREAD_CPPFLAGS)
24
LDFLAGS += $(THREAD_LIBS)
28
thread_test: thread_test.o
29
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
31
clean distclean maintainer-clean:
32
rm -f thread_test$(X) thread_test.o