#!make -f
#
#     mjh-EDV Beratung - 63263 Neu-Isenburg - Rosenstrasse 12
#          Tel +49 6102 328279 - Fax +49 6102 328278
#                Email info@mjh.teddy-net.com
#              Copyright (c) 1998-2000 GNU LGPG
#
#       Author: Jordan Hrycaj <jordan@mjh.teddy-net.com>
#
#   $Id: Makefile.in,v 1.1 2000/08/14 20:51:35 jordan Exp $
#
#   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.
#

# current version
TOOLVERS     = @PEKSSUPER@:@PEKSPATCH@:@PEKSMINOR@

# standard stuff
SHELL        = /bin/sh
top_builddir = @PWDD@
rootdir      = @PWDD@
prefix       = @prefix@
exec_prefix  = @exec_prefix@
libdir       = @libdir@
incdir       = @includedir@
INSTALL      = @INSTALL@
INSTALL_DIR  = @INSTALL_DIR@
LIBTOOL      = @LIBTOOL@

# Some defines you may want to modify
DEBUG        = 
DEFS         = -I. -I.. @DEFS@ $(DEBUG)

# Your C compiler
CC           = @CC@
XCFLAGS      = @PICFLAG@ $(CWARN)
CFLAGS       = @CFLAGS@ $(XCFLAGS)

# some commands
SED          = sed
AUTOCONF     = autoconf
RANLIB       = @RANLIB@
LN           = ln -s
RM           = rm -f
RRM          = rm -rf
RMDIR        = rmdir

OBJS = cipher.o twofish.o blowfish.o des.o \
       md5.o rmd160.o sha1.o smallprime.o

all : Makefile ../us_export_wizard.h $(OBJS)

stamp-o: all
	touch $@

$(OBJS): $(OBJ:.o=.c)

.SUFFIXES: .o .c

.c.o:
	$(LIBTOOL) $(CC) $(DEFS) $(CFLAGS) -c $<

# on some gcc, the optimiser + debugging makes problems
twofish.o: twofish.c
	$(LIBTOOL) $(CC) $(XCFLAGS) $(DEFS) -c twofish.c

Makefile: ../config.status Makefile.in
	cd .. && $(SHELL) config.status
	@touch $@

../config.status: ../configure
	cd .. && $(MAKE) config.status

../configure: ../configure.in
	-cd .. && $(MAKE) configure

../us_export_wizard.h:
	-cd .. && $(MAKE) us_export_wizard.h

clean:
	$(RM) *.o *.lo config.log stamp-o

distclean: clean
	$(RM) *~ *.bak *.swp Makefile stamp-h \
		lib*.so lib*.so.* lib*.a lib*.la *~ ldflags.out */*~ 
	$(RRM) .libs libtool */.libs */.deps

# -----------------------
# dependencies
# -----------------------

.PRECIOUS:

