1998-12-21 18:52:47 +08:00
|
|
|
#
|
|
|
|
# SSLeay/crypto/rc2/Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
DIR= rc2
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
|
|
|
INCLUDES=
|
|
|
|
CFLAG=-g
|
1999-04-30 05:52:08 +08:00
|
|
|
INSTALL_PREFIX=
|
|
|
|
OPENSSLDIR= /usr/local/ssl
|
1998-12-21 18:52:47 +08:00
|
|
|
INSTALLTOP=/usr/local/ssl
|
|
|
|
MAKE= make -f Makefile.ssl
|
2001-02-20 00:06:34 +08:00
|
|
|
MAKEDEPPROG= makedepend
|
|
|
|
MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
|
1998-12-21 18:52:47 +08:00
|
|
|
MAKEFILE= Makefile.ssl
|
|
|
|
AR= ar r
|
|
|
|
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
TEST=rc2test.c
|
|
|
|
APPS=
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
|
|
|
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
|
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
|
|
|
EXHEADER= rc2.h
|
|
|
|
HEADER= rc2_locl.h $(EXHEADER)
|
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(LIBOBJ)
|
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
2001-03-09 22:01:42 +08:00
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
1998-12-21 18:52:47 +08:00
|
|
|
@touch lib
|
|
|
|
|
|
|
|
files:
|
1999-04-01 20:34:33 +08:00
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
links:
|
2003-12-27 22:59:07 +08:00
|
|
|
@sh $(TOP)/util/point.sh Makefile.ssl Makefile
|
1999-04-29 20:46:59 +08:00
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
|
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
|
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
install:
|
2004-11-03 07:55:01 +08:00
|
|
|
@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
|
1998-12-21 18:52:47 +08:00
|
|
|
do \
|
1999-04-30 05:52:08 +08:00
|
|
|
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
|
|
|
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
|
1998-12-21 18:52:47 +08:00
|
|
|
done;
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
2002-10-09 21:25:12 +08:00
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
dclean:
|
1999-04-01 20:34:33 +08:00
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
1998-12-21 18:52:47 +08:00
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
1999-03-06 20:32:06 +08:00
|
|
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
1999-03-06 22:32:48 +08:00
|
|
|
|
1999-04-24 06:50:50 +08:00
|
|
|
rc2_cbc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h
|
2001-08-01 01:07:24 +08:00
|
|
|
rc2_cbc.o: rc2_cbc.c rc2_locl.h
|
1999-04-24 06:50:50 +08:00
|
|
|
rc2_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
2001-08-01 01:07:24 +08:00
|
|
|
rc2_ecb.o: ../../include/openssl/rc2.h rc2_ecb.c rc2_locl.h
|
1999-04-24 06:50:50 +08:00
|
|
|
rc2_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h
|
2001-08-01 01:07:24 +08:00
|
|
|
rc2_skey.o: rc2_locl.h rc2_skey.c
|
1999-04-24 06:50:50 +08:00
|
|
|
rc2cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h
|
2001-08-01 01:07:24 +08:00
|
|
|
rc2cfb64.o: rc2_locl.h rc2cfb64.c
|
1999-04-24 06:50:50 +08:00
|
|
|
rc2ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc2.h
|
2001-08-01 01:07:24 +08:00
|
|
|
rc2ofb64.o: rc2_locl.h rc2ofb64.c
|