mirror of
https://github.com/openssl/openssl.git
synced 2024-11-30 05:24:06 +08:00
ec577822f9
Submitted by: Reviewed by: PR:
112 lines
2.3 KiB
Makefile
112 lines
2.3 KiB
Makefile
#
|
|
# SSLeay/crypto/blowfish/Makefile
|
|
#
|
|
|
|
DIR= bf
|
|
TOP= ../..
|
|
CC= cc
|
|
CPP= $(CC) -E
|
|
INCLUDES=
|
|
CFLAG=-g
|
|
INSTALLTOP=/usr/local/ssl
|
|
MAKE= make -f Makefile.ssl
|
|
MAKEDEPEND= $(TOP)/util/domd $(TOP)
|
|
MAKEFILE= Makefile.ssl
|
|
AR= ar r
|
|
|
|
BF_ENC= bf_enc.o
|
|
# or use
|
|
#DES_ENC= bx86-elf.o
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
GENERAL=Makefile
|
|
TEST=bftest.c
|
|
APPS=
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
|
LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c
|
|
LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
EXHEADER= blowfish.h
|
|
HEADER= bf_pi.h bf_locl.h $(EXHEADER)
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
top:
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
all: lib
|
|
|
|
lib: $(LIBOBJ)
|
|
$(AR) $(LIB) $(LIBOBJ)
|
|
$(RANLIB) $(LIB)
|
|
@touch lib
|
|
|
|
# elf
|
|
asm/bx86-elf.o: asm/bx86unix.cpp
|
|
$(CPP) -DELF asm/bx86unix.cpp | as -o asm/bx86-elf.o
|
|
|
|
# solaris
|
|
asm/bx86-sol.o: asm/bx86unix.cpp
|
|
$(CC) -E -DSOL asm/bx86unix.cpp | sed 's/^#.*//' > asm/bx86-sol.s
|
|
as -o asm/bx86-sol.o asm/bx86-sol.s
|
|
rm -f asm/bx86-sol.s
|
|
|
|
# a.out
|
|
asm/bx86-out.o: asm/bx86unix.cpp
|
|
$(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o
|
|
|
|
# bsdi
|
|
asm/bx86bsdi.o: asm/bx86unix.cpp
|
|
$(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o
|
|
|
|
asm/bx86unix.cpp:
|
|
(cd asm; $(PERL) bf-586.pl cpp $(PROCESSOR) >bx86unix.cpp)
|
|
|
|
files:
|
|
$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
|
|
|
|
links:
|
|
@$(TOP)/util/point.sh Makefile.ssl Makefile
|
|
@$(TOP)/util/mklink.sh ../../include/openssl $(EXHEADER)
|
|
@$(TOP)/util/mklink.sh ../../test $(TEST)
|
|
@$(TOP)/util/mklink.sh ../../apps $(APPS)
|
|
|
|
install:
|
|
@for i in $(EXHEADER) ; \
|
|
do \
|
|
(cp $$i $(INSTALLTOP)/include/openssl/$$i; \
|
|
chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
|
|
done;
|
|
|
|
tags:
|
|
ctags $(SRC)
|
|
|
|
tests:
|
|
|
|
lint:
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
depend:
|
|
$(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
|
|
|
|
dclean:
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
clean:
|
|
rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
errors:
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
bf_cfb64.o: ../opensslconf.h bf_locl.h blowfish.h
|
|
bf_ecb.o: ../opensslconf.h ../opensslv.h bf_locl.h blowfish.h
|
|
bf_enc.o: ../opensslconf.h bf_locl.h blowfish.h
|
|
bf_ofb64.o: ../opensslconf.h bf_locl.h blowfish.h
|
|
bf_skey.o: ../opensslconf.h bf_locl.h bf_pi.h blowfish.h
|