#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"@(#)libcrypt.mk	35.1"

#	Makefile for libcrypt

ROOT =

USRLIB = /lib

INC = /include

LDFLAGS =

CFLAGS = -O -I$(INC) 

STRIP = strip

SIZE = size

#top#
# Generated by makefile 1.47

MAKEFILE = libcrypt.mk


LIBRARY = libcrypt.a

OBJECTS =  crypt.o cryptio.o des_crypt.o des_dcrypt.o des_ecrypt.o \
	p2open.o

SOURCES =  crypt.c cryptio.c des_crypt.c des_dcrypt.c des_ecrypt.c \
	p2open.c

ALL:		$(LIBRARY)

$(LIBRARY):	$(LIBRARY)(p2open.o) $(LIBRARY)(des_ecrypt.o) \
		$(LIBRARY)(des_dcrypt.o) $(LIBRARY)(des_crypt.o) \
		$(LIBRARY)(cryptio.o) $(LIBRARY)(crypt.o) 


$(LIBRARY)(crypt.o):	 
		$(CC) -c $(CFLAGS) crypt.c

$(LIBRARY)(cryptio.o):	 $(INC)/stdio.h \
		 $(INC)/signal.h	\
		 $(INC)/sys/signal.h 

$(LIBRARY)(des_dcrypt.o):	 

$(LIBRARY)(des_ecrypt.o):	 

$(LIBRARY)(p2open.o):	 $(INC)/stdio.h \
		 $(INC)/signal.h	\
		 $(INC)/sys/signal.h \
		 $(INC)/fcntl.h \
		 $(INC)/sys/fcntl.h 

GLOBALINCS = $(INC)/fcntl.h \
	$(INC)/signal.h \
	$(INC)/stdio.h \
	$(INC)/sys/fcntl.h \
	$(INC)/sys/signal.h 


clean:
	rm -f $(OBJECTS)

clobber:
	rm -f $(OBJECTS) $(LIBRARY)

newmakefile:
	makefile -m -f $(MAKEFILE) -L $(LIBRARY)  -s INC $(INC)

#bottom#

$(LIBRARY)(des_crypt.o):	 
	if [ -s des_dcrypt.c ] ;\
	then \
		$(CC) -c $(CFLAGS) des_crypt.c ;\
	else \
		$(CC) -c $(CFLAGS) -DINTERNATIONAL des_crypt.c ;\
	fi ;\
	ar rv $(LIBRARY) des_crypt.o ;\
	rm -f des_crypt.o

all : $(LIBRARY)

install: ALL
	if [ -f libcrypt_x.mk ] ;\
	then \
		mv $(LIBRARY) libcrypt_x.a ;\
		cpset libcrypt_x.a $(USRLIB) 0644 bin bin ;\
		mv libcrypt_x.a $(LIBRARY) ;\
	else \
		cpset $(LIBRARY) $(USRLIB) 0644 bin bin ;\
	fi 

size: ALL
	$(SIZE) $(LIBRARY)

strip: ALL

#	These targets are useful but optional

partslist:
	@echo $(MAKEFILE) $(SOURCES) $(LOCALINCS)  |  tr ' ' '\012'  |  sort

productdir:
	@echo $(USRLIB) | tr ' ' '\012' | sort

product:
	@echo $(LIBRARY)  |  tr ' ' '\012'  | \
	sed 's;^;$(USRLIB)/;'

srcaudit:
	@fileaudit $(MAKEFILE) $(LOCALINCS) $(SOURCES) -o $(OBJECTS) $(LIBRARY)
