# $Id: Makefile,v 1.1.1.1 1996/06/30 15:50:54 mtp Exp $
############################################################################
#    
#  COPYRIGHT NOTICE
#    
#  Copyright (C) 1995, 1996 Michael T. Peterson
#  This file is part of the PCthreads (tm) multithreading library
#  package.
#    
#  The source files and libraries constituting the PCthreads (tm) package
#  are free software; you can redistribute them and/or modify them under
#  the terms of the GNU Library General Public License as published by the Free
#  Software Foundation; either version 2 of the License, or (at your
#  option) any later version.
#    
#  The PCthreads (tm) package is distributed in the hope that it will
#  be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  Library General Public License for more details.
#    
#  You should have received a copy of the GNU Library General Public
#  License along with this library (see the file COPYING.LIB); if not,
#  write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
#  MA 02139, USA.
#    
#  To report bugs, bug fixes, or provide feedback you may contact the
#  author, Michael T. Peterson, at either of the two email addresses listed
#  below:
#    
#                 mtp@big.aa.net (Preferred)
#                 mtp@zso.dec.com
#    
#    
#  Michael T. Peterson
#  Issaquah, WA
#  29 January, 1996
############################################################################
# $Log: Makefile,v $
# Revision 1.1.1.1  1996/06/30 15:50:54  mtp
# DCE threads for Linux V1.0
#
############################################################################
include     ../Make.defs
MAJOR       = 1
MINOR       = 0
REVISION    = 0
VERSION     = ${MAJOR}.${MINOR}.${REVISION}

LINK_LIBS   = ${LFLAGS} -llocks -lc_r -lpthread -lm

all:    test1-${exe} \
        test2-${exe} \
        test3-${exe} \
        test4-${exe} \
        test5-${exe} \
        test6-${exe}

CFLAGS  += -D_THREAD_SAFE_

test1-${exe}: test1.c
	@echo + building test1
	@${CC} ${CFLAGS} test1.c ${LINK_LIBS} -o test1-${exe} 

test2-${exe}: test2.c
	@echo + building test2
	@${CC} ${CFLAGS} test2.c ${LINK_LIBS} -o test2-${exe}

test3-${exe}: test3.c ${LOCK_HEADERS}
	@echo + building test3
	@${CC} ${CFLAGS} test3.c ${LINK_LIBS} -o test3-${exe}

test4-${exe}: test4.c ${LOCK_HEADERS}
	@echo + building test4
	@${CC} ${CFLAGS} test4.c ${LINK_LIBS} -o test4-${exe}

test5-${exe}: test5.c ${LOCK_HEADERS}
	@echo + building test5
	@${CC} ${CFLAGS} test5.c ${LINK_LIBS} -o test5-${exe}

test6-${exe}: test6.c ${LOCK_HEADERS}
	@echo + building test6
	@${CC} ${CFLAGS} test6.c ${LINK_LIBS} -o test6-${exe}

clobber: clean
	@rm -f ${TARGET_LIB} ${LINK} ${LOCK_HEADERS} ${LIB_OBJECTS}

clean:
	@rm -f *.bak *.rem *~ test*-${exe}
