2 # SSLeay/crypto/blowfish/Makefile
10 CFLAG=-g -D__KERNEL__ -I/usr/src/linux/include
12 OPENSSLDIR= /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKE= make -f Makefile.ssl
15 MAKEDEPEND= $(TOP)/util/domd $(TOP)
16 MAKEFILE= Makefile.ssl
21 CFLAGS= $(INC) $(CFLAG)
24 $(CC) $(CPPFLAGS) $(CFLAGS) $(INC) -c $< -o $@
26 BF_ASM-i586 := bf-586.pl
27 BF_ASM-i686 := bf-686.pl
31 ASM_X86:=$(ASM-i586)$(ASM-i686)
32 ifneq ($(strip $(ASM_X86)),)
33 BF_ENC= asm/bx86-elf.o
34 BF_ASM= $(BF_ASM-$(ARCH_ASM))
43 LIBSRC=bf_skey.c bf_enc.c
44 LIBOBJ=bf_skey.o $(BF_ENC)
49 HEADER= bf_pi.h bf_locl.h $(EXHEADER)
51 ALL= $(GENERAL) $(SRC) $(HEADER)
54 # (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
61 $(AR) $(LIB) $(LIBOBJ)
65 asm/bx86-elf.o: asm/bx86unix.cpp
66 $(CPP) -DELF -x c asm/bx86unix.cpp | as -o asm/bx86-elf.o
69 asm/bx86-sol.o: asm/bx86unix.cpp
70 $(CC) -E -DSOL asm/bx86unix.cpp | sed 's/^#.*//' > asm/bx86-sol.s
71 as -o asm/bx86-sol.o asm/bx86-sol.s
75 asm/bx86-out.o: asm/bx86unix.cpp
76 $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o
79 asm/bx86bsdi.o: asm/bx86unix.cpp
80 $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o
82 asm/bx86unix.cpp: asm/$(BF_ASM) ../perlasm/x86asm.pl ../perlasm/cbc.pl
83 (cd asm; $(PERL) $(BF_ASM) cpp $(PROCESSOR) >bx86unix.cpp)
86 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
89 @$(TOP)/util/point.sh Makefile.ssl Makefile
90 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
91 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
92 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
97 @for i in $(EXHEADER) ; \
99 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
100 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
109 lint -DLINT $(INCLUDES) $(SRC)>fluff
112 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
115 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
116 mv -f Makefile.new $(MAKEFILE)
119 rm -f asm/bx86unix.cpp *.o asm/*.o *.obj $(LIB) tags core .pure .nfs* *.old *.bak fluff
121 # DO NOT DELETE THIS LINE -- make depend depends on it.