des-warning-cleanup-20011005
[openafs.git] / src / des / NTMakefile
1 #
2 # Copyright 1987 by the Massachusetts Institute of Technology.
3 #
4 # For copying and distribution information,
5 # please see the file <mit-cpyright.h>.
6 #
7 # Makefile for BSD DES library
8 #
9 # First define machine type, compiler, and object file suffix
10 # Could be for VAX or PC-DOS
11 #
12 # Some of these files are cross compiled on the vax for the pc8086,
13 # using the MIT LCS cross-compilation environment
14 # Others are always executed on the vax(host).
15 #
16 # A machine, e.g. Vax, pc8086, IBM experimental workstation, is 
17 # described in terms of defines for its word length
18 # (BITS32 or BITS16), byte ordering (LSBFIRST or MSBFIRST) and 
19 # operating system (BSDUNIX or CROSSMSDOS).
20 #
21 # Make sure these are properly defined for any new machine types.
22 # target machine for run-time code (may cross-compile),
23 # override as needed 
24 #
25
26
27 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
28 !INCLUDE ..\config\NTMakefile.version
29
30
31 INCFILEDIR = $(DESTDIR)\include
32
33 INCFILES =\
34         $(INCFILEDIR)\des.h \
35         $(INCFILEDIR)\des_conf.h \
36         $(INCFILEDIR)\mit-cpyright.h \
37         $(INCFILEDIR)\des_odd.h \
38         $(INCFILEDIR)\crypt.h
39
40 $(INCFILEDIR)\des_odd.h: odd.h
41         $(COPY) odd.h $@
42
43
44 # Library component lists.
45
46 LIBOBJS = \
47         des.obj \
48         cbc_encrypt.obj \
49         pcbc_encrypt.obj \
50         cksum.obj \
51         new_rnd_key.obj \
52         key_sched.obj \
53         debug_decl.obj \
54         quad_cksum.obj \
55         key_parity.obj \
56         weak_key.obj \
57         read_pssword.obj \
58         strng_to_key.obj \
59         misc.obj \
60         util.obj \
61         crypt.obj
62
63 LIBFILE = $(DESTDIR)\lib\afsdes.lib
64
65 $(LIBFILE): $(LIBOBJS)
66         $(LIBARCH)
67
68 #####################
69 # Generator Files ###
70 #####################
71
72 GENERATED_FILES = \
73         key_perm.h \
74         p_table.h \
75         s_table.h \
76         odd.h \
77         p.c \
78         s.c \
79         fp.c \
80         ip.c
81
82 # Make generated files.
83 MAKETARG = $** $@
84
85 key_perm.h: make_keyperm.exe
86         $(MAKETARG)
87
88 p_table.h: make_p_table.exe
89         $(MAKETARG)
90
91 s_table.h: make_s_table.exe
92         $(MAKETARG)
93
94 odd.h: make_odd.exe
95         $(MAKETARG)
96
97 p.c: make_p.exe
98         $(MAKETARG)
99
100 s.c: make_s.exe
101         $(MAKETARG)
102
103 fp.c: make_fp.exe
104         $(MAKETARG)
105
106 ip.c: make_ip.exe
107         $(MAKETARG)
108
109 # Make generators.
110 misc.obj: AFS_component_version_number.c
111
112 make_keyperm.exe: make_keyperm.obj misc.obj main.obj
113         $(EXECONLINK)
114
115 make_p_table.exe: make_p_table.obj misc.obj main.obj
116         $(EXECONLINK)
117
118 make_s_table.exe: make_s_table.obj misc.obj main.obj
119         $(EXECONLINK)
120
121 make_odd.exe: make_odd.obj misc.obj main.obj
122         $(EXECONLINK)
123
124 make_p.exe: make_p.obj misc.obj main.obj
125         $(EXECONLINK)
126
127 make_s.exe: make_s.obj misc.obj main.obj
128         $(EXECONLINK)
129
130 make_fp.exe: make_fp.obj misc.obj main.obj
131         $(EXECONLINK)
132
133 make_ip.exe: make_ip.obj misc.obj main.obj
134         $(EXECONLINK)
135
136 install: $(GENERATED_FILES) $(LIBFILE) $(INCFILES)
137
138 install9x: install
139
140 clean::
141         $(DEL) $(LIBFILE) $(GENERATED_FILES)
142