#!/usr/bin/make -f
#
# source:
#   /var/cvs/projects/debian/cracklib/debian/dpkg.src/cracklib2-dev.makefile.in,v
#
# revision:
#   @(#) cracklib2-dev.makefile.in,v 1.2 1999/03/29 15:30:22 jplejacq Exp
#
# copyright:
#   Copyright (C) 1998, 1999 Jean Pierre LeJacq <jplejacq@quoininc.com>
#
#   Distributed under the GNU GENERAL PUBLIC LICENSE.
#
# synopsis:
#   makefile
#
# description:
#   Makefile for cracklib2 examples.


# variables:
  CC=gcc
  CPPFLAGS=
  CFLAGS=-ansi -pedantic-errors -Wall -W -Wwrite-strings -Wconversion -O2 -g
  LDFLAGS=

  COMPILE=$(CC) $(CPPFLAGS) $(CFLAGS) -c
  LINK=$(CC) $(LDFLAGS) -o $(@) $(LOADLIBES)

  LOADLIBES=-lcrack


# rules:
  all: cracklib_example

  cracklib_example: cracklib_example.o
	$(LINK) $(^)

  cracklib_example.o: cracklib_example.c
	$(COMPILE) $(<)

  clean:
	$(RM) a.out *.o *~

  clean_dist: clean
	$(RM) cracklib_example
