MYPP_INCLUDE=../../include
INCLUDES=-I$(MYPP_INCLUDE)
TARGETS=cond tcond
LIBS=-lmythread++ -lpthread

include ../../config.mk

all: thread
thread: thread.cc $(MYPP_INCLUDE)/my++/thread.h
	$(CPP) $(CFLAGS) $(INCLUDES) $(LIBS) -D_REENTRANT -o thread thread.cc $(LIBS)
strip: thread
	strip thread
clean:
	rm -f thread *.o *~
	for i in $(TARGETS) ; do $(MAKE) -C $$i clean ; done
rebuild: clean all
