1 # Copyright 2010, Your File System Inc
4 # This software has been released under the terms of the BSD License
5 # For details, see the LICENSE file in the top level source directory
8 !include ..\..\config\NTMakefile.$(SYS_NAME)
9 !include ..\..\config\NTMakefile.version
10 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -I$(SRC)\external\heimdal\hcrypto -DHAVE_CONFIG_H=1 -DKRB5
12 HCRYPTO = $(SRC)\external\heimdal\hcrypto
14 INCFILEDIR = $(DESTDIR)\include\hcrypto
17 $(INCFILEDIR)\engine.h
23 $(INCFILEDIR)\evp-hcrypto.h \
24 $(INCFILEDIR)\evp-cc.h \
25 $(INCFILEDIR)\hmac.h \
29 $(INCFILEDIR)\rand.h \
35 LIBFILE = $(DESTDIR)\lib\afshcrypto.dll
37 # Object files by category.
41 HCRYPTO_OBJS = $(OUT)\aes.obj \
43 $(OUT)\camellia-ntt.obj \
46 $(OUT)\evp-hcrypto.obj \
57 $(OUT)\rijndael-alg-fst.obj \
65 # This is a horrible hack that is required to get
66 # around the fact that the OpenAFS build system copies
67 # its own des.h into the top-level OpenAFS include
68 # directory. When the OpenAFS des implementation is
69 # removed, this hack can be removed as well
70 des.h: $(HCRYPTO)\des.h
73 $(HCRYPTO_OBJS):$(HCRYPTO)\$$(@B).c
74 $(C2OBJ) $** -I$(HCRYPTO)
76 $(HCRYPTO_INCFILES):$(HCRYPTO)\$$(@B).h
77 $(COPY) $** $(INCFILEDIR)
80 $(COPY) $** $(INCFILEDIR)
82 RESFILE = $(OUT)\afshcrypto.res
84 $(RESFILE): afshcrypto.rc AFS_component_version_number.h
87 NTMAKE = nmake /nologo /f ntmakefile
91 $(DESTDIR)\lib\afsroken.lib
93 $(LIBFILE): $(LOCAL_OBJS) $(HCRYPTO_OBJS) $(RESFILE) $(DLLLIBS)
94 $(DLLCONLINK) /DEF:afshcrypto.def shell32.lib
95 $(_VC_MANIFEST_EMBED_DLL)
99 $(MAKECYGLIB) --input-def afshcrypto.def
101 # Definitions for generating versioninfo resources
102 $(OUT)\afshcrypto.res: AFS_component_version_number.h
104 install_headers: $(INCFILES) $(HCRYPTO_INCFILES)
106 install: install_headers des.h $(LIBFILE)
111 $(DEL) $(LIBFILE) $(DESTDIR)\lib\afshcrypto.lib $(DESTDIR)\lib\afshcrypto.exp