# Generated automatically from Makefile.in by configure.
# --------------------------------------------------------------------
#    Copyright (C) 1999,  Daniel Schulz	   
# 
#    This file is part of the TDI library. The TDI library implements  
#    the generic part of the Thread Debug Interface for POSIX Threads
#    Implementations - TDI.
#
#    This library is free software; you can redistribute it and/or
#    modify it 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.
#
#    This library 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; if not, write to the Free
#    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#    Report problems and direct all questions to:
#
#    tdi-bugs@informatik.hu-berlin.de
#	
# $Author: dschulz $ $Date: 1999/05/03 23:08:35 $ $Name: TDI-alpha-release-2 $ 
# File: Makefile.in 
#
# ----------------------------------------------------------------------
CC     = cc
AR     = ar
RANLIB = ranlib
TDI_CFLAGS   = -g
TDI_INCLUDE  = ../include/
TDI_CLT_OBJS = tdi-client.o tdi-comm.o tdi-comm-sm.o

SHARED_FLAG     = -G -z text
PIC_FLAG        = -fPIC

EXT_INC_DEPS = tdi-comm-sm.h tdi-comm.h tdi-client.h tdi.h
EXT_SRC_DEPS = tdi-comm-sm.c tdi-comm.c comm-config.h

EXT_DEPS = $(EXT_INC_DEPS) $(EXT_SRC_DEPS)


new: libTDIClt.a libTDIClt.so 

libTDIClt.so: $(TDI_CLT_OBJS:%.o=%.do)
	$(LD) -o $@ $(SHARED_FLAG)  $^

libTDIClt.a: $(TDI_CLT_OBJS)
	$(AR) ru $@ $^
	$(RANLIB) $@

# prefix was specified with /home/mueller/tdi/TDI/..
install: libTDIClt.a libTDIClt.so
	cp $? /home/mueller/tdi/TDI/../lib

clt-clean:
	@rm -f *.o *.do

clt-clean-all:
	@rm -f *.o *.a *.so

clean:
	make clt-clean
	make clt-clean-all
	rm -rf *~ *.o $(EXT_DEPS)


%.o:	%.c Makefile $(EXT_DEPS)
	$(CC) $(TDI_CFLAGS) -I. -I$(TDI_INCLUDE) -c $(@:%.o=%.c)

%.do:%.c
	$(CC) $(TDI_CFLAGS) -I. -I$(TDI_INCLUDE) $(PIC_FLAG) -c $(@:%.do=%.c)  -o $@

$(EXT_INC_DEPS):
	ln -s ../include/$@ .

$(EXT_SRC_DEPS):
	ln -s ../Comm/$@ .









