# Copyright 02/04/2000 Sun Microsystems, Inc. All Rights Reserved
#
# Makefile for threadtest example 
#

OFLAGS = -g -xsb \
	-I/usr/openwin/include \
	-I/usr/dt/include

OPTS = $(OFLAGS) 

TARGETS= threadtest 

OBJS= threadtest.o \
	$(NULL)

threadtest: threadtest.o
	$(LINK.c) $(OPTS) -o threadtest threadtest.o -L/usr/openwin/lib -L/usr/dt/lib -lXm -lXt -lXext -lX11 -lm -lsocket -lnsl -lthread -lpthread -lintl -lgen -lposix4 -ldl -lcurses

threadtest.o: threadtest.c
	$(COMPILE.c) $(OPTS) -o threadtest.o threadtest.c
clean:
	@-$(RM) -rf .sb *.BAK *.delta core \
	$(TARGETS) $(OBJS) \
	.prof .nm mon.out *.tcov  \
	*.d tags *~ $(TAG_FILE) SunWS_cache
