Makefile.in 1.1 KB
Newer Older
1
#
R
Rich Salz 已提交
2
# OpenSSL/crypto/rc2/Makefile
3 4
#

R
Rich Salz 已提交
5
DIR=	rc2
6 7 8 9
TOP=	../..
CC=	cc
INCLUDES=
CFLAG=-g
R
Rich Salz 已提交
10
MAKEFILE=	Makefile
11 12 13 14 15 16 17
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG)

GENERAL=Makefile

LIB=$(TOP)/libcrypto.a
R
Rich Salz 已提交
18 19
LIBSRC=rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c
LIBOBJ=rc2_ecb.o rc2_skey.o rc2_cbc.o rc2cfb64.o rc2ofb64.o
20 21 22

SRC= $(LIBSRC)

R
Rich Salz 已提交
23 24
HEADER=	rc2_locl.h

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

all:	lib

lib:	$(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
	$(RANLIB) $(LIB) || echo Never mind.
	@touch lib

files:
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO

tags:
	ctags $(SRC)

tests:

lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

R
Rich Salz 已提交
48
update: depend
49 50 51 52 53 54 55 56 57 58

depend:
	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)

dclean:
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
	mv -f Makefile.new $(MAKEFILE)

clean:
R
Rich Salz 已提交
59
	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
60 61

# DO NOT DELETE THIS LINE -- make depend depends on it.