2015-12-09 20:11:49 +00:00
|
|
|
#
|
2016-01-12 21:25:30 +00:00
|
|
|
# OpenSSL/crypto/cast/Makefile
|
2015-12-09 20:11:49 +00:00
|
|
|
#
|
|
|
|
|
2016-01-12 21:25:30 +00:00
|
|
|
DIR= cast
|
2015-12-09 20:11:49 +00:00
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
2016-01-12 21:25:30 +00:00
|
|
|
CPP= $(CC) -E
|
2015-12-09 20:11:49 +00:00
|
|
|
INCLUDES=
|
|
|
|
CFLAG=-g
|
2016-01-12 21:25:30 +00:00
|
|
|
MAKEFILE= Makefile
|
2015-12-09 20:11:49 +00:00
|
|
|
AR= ar r
|
|
|
|
|
2016-01-12 21:25:30 +00:00
|
|
|
CAST_ENC=c_enc.o
|
2015-12-12 11:29:37 +00:00
|
|
|
|
2015-12-09 20:11:49 +00:00
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
|
|
|
AFLAGS= $(ASFLAGS)
|
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2016-01-12 21:25:30 +00:00
|
|
|
LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
|
|
|
|
LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o
|
2015-12-09 20:11:49 +00:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
2016-01-12 21:25:30 +00:00
|
|
|
HEADER= cast_s.h cast_lcl.h
|
|
|
|
|
2015-12-09 20:11:49 +00:00
|
|
|
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
|
|
|
|
|
2016-01-12 21:25:30 +00:00
|
|
|
cast-586.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
|
|
|
|
$(PERL) asm/cast-586.pl $(PERLASM_SCHEME) $(CLAGS) $(PROCESSOR) > $@
|
|
|
|
|
2015-12-09 20:11:49 +00:00
|
|
|
files:
|
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
|
|
|
|
depend:
|
2016-01-29 18:29:45 +00:00
|
|
|
$(TOP)/util/domd $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
2015-12-09 20:11:49 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|