blob: 4ed8ef7bffdd1a7b125d8a640ce69ea968590c9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
thisconfigdir=../../..
myfulldir=lib/crypto/aes
mydir=lib/crypto/aes
BUILDTOP=$(REL)..$(S)..$(S)..
LOCALINCLUDES = -I$(srcdir)/.. -I$(srcdir)/../dk
DEFS=
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=aes
##DOS##OBJFILE=..\$(OUTPRE)aes.lst
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
RUN_SETUP = @KRB5_RUN_ENV@ KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf
STLIBOBJS=\
aescrypt.o \
aestab.o \
aeskey.o \
aes_s2k.o
OBJS=\
$(OUTPRE)aescrypt.$(OBJEXT) \
$(OUTPRE)aestab.$(OBJEXT) \
$(OUTPRE)aeskey.$(OBJEXT) \
$(OUTPRE)aes_s2k.$(OBJEXT)
SRCS=\
$(srcdir)/aescrypt.c \
$(srcdir)/aestab.c \
$(srcdir)/aeskey.c \
$(srcdir)/aes_s2k.c
GEN_OBJS=\
$(OUTPRE)aescrypt.$(OBJEXT) \
$(OUTPRE)aestab.$(OBJEXT) \
$(OUTPRE)aeskey.$(OBJEXT)
##DOS##LIBOBJS = $(OBJS)
all-unix:: all-libobjs # aes-gen
includes:: depend
depend:: $(SRCS)
aes-gen: aes-gen.o $(GEN_OBJS)
$(CC_LINK) -o aes-gen aes-gen.o $(GEN_OBJS)
run-aes-gen: aes-gen
./aes-gen > kresults.out
check:: run-aes-gen
aes-test: aes-test.$(OBJEXT) $(CRYPTO_DEPLIB)
$(CC_LINK) -o aes-test aes-test.$(OBJEXT) $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB)
check:: run-aes-test
run-aes-test: aes-test
$(RUN_SETUP) $(VALGRIND) ./aes-test -k > vk.txt
cmp vk.txt $(srcdir)/expect-vk.txt
$(RUN_SETUP) $(VALGRIND) ./aes-test > vt.txt
cmp vt.txt $(srcdir)/expect-vt.txt
clean-unix:: clean-libobjs
clean::
-$(RM) aes-gen aes-gen.o vt.txt vk.txt kresults.out aes-test aes-test.o
@libobj_frag@
|