# $Id: Makefile,v 1.3 2004/02/10 04:11:01 wcampbel Exp $

CC = gcc
CFLAGS = -O2 -g -Wall -I.
RM = rm
AR = ar
RANLIB = ranlib

SRCS =	arc4random.c \
	blowfish.c \
	crypt-blowfish.c \
	crypt-des.c \
	crypt-md5.c \
	crypt.c \
	md5c.c \
	misc.c \
	wingtod.c

OBJS = ${SRCS:.c=.o}

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

all: local_crypt.a

clean:
	$(RM) -f *.o

local_crypt.a: $(OBJS)
	$(RM) -f $@
	$(AR) cqv $@ $(OBJS)
	$(RANLIB) $@
	
distclean: clean
	$(RM) -f local_crypt.a

lint:	
	lint -aacgprxhH -I../include $(SRCS) >../lint.out

depend:
	$(CC) -MM $(CFLAGS) $(SRCS) > .depend

## Rules are done, now dependencies

# Catch any changes in compilation options at the top of this file
$(OBJS): Makefile

include .depend
