2 # Copyright 1987 by the Massachusetts Institute of Technology.
4 # For copying and distribution information,
5 # please see the file <mit-cpyright.h>.
7 # Makefile for BSD DES library
9 # First define machine type, compiler, and object file suffix
10 # Could be for VAX or PC-DOS
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).
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).
21 # Make sure these are properly defined for any new machine types.
22 # target machine for run-time code (may cross-compile),
27 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
28 !INCLUDE ..\config\NTMakefile.version
31 INCFILEDIR = $(DESTDIR)\include
35 $(INCFILEDIR)\des_conf.h \
36 $(INCFILEDIR)\mit-cpyright.h \
37 $(INCFILEDIR)\des_odd.h \
40 $(INCFILEDIR)\des_odd.h: odd.h
44 # Library component lists.
48 $(OJT)\cbc_encrypt.obj \
49 $(OJT)\pcbc_encrypt.obj \
51 $(OJT)\new_rnd_key.obj \
52 $(OJT)\key_sched.obj \
53 $(OJT)\debug_decl.obj \
54 $(OJT)\quad_cksum.obj \
55 $(OJT)\key_parity.obj \
57 $(OJT)\read_pssword.obj \
58 $(OJT)\strng_to_key.obj \
63 LIBFILE = $(DESTDIR)\lib\afsdes.lib
65 $(LIBFILE): $(LIBOBJS)
82 # Make generated files.
85 key_perm.h: $(OJT)\make_keyperm.exe
88 p_table.h: $(OJT)\make_p_table.exe
91 s_table.h: $(OJT)\make_s_table.exe
94 odd.h: $(OJT)\make_odd.exe
97 p.c: $(OJT)\make_p.exe
100 s.c: $(OJT)\make_s.exe
103 fp.c: $(OJT)\make_fp.exe
106 ip.c: $(OJT)\make_ip.exe
110 $(OJT)\misc.obj: AFS_component_version_number.c
112 $(OJT)\make_keyperm.exe: $(OJT)\make_keyperm.obj $(OJT)\misc.obj $(OJT)\main.obj
115 $(OJT)\make_p_table.exe: $(OJT)\make_p_table.obj $(OJT)\misc.obj $(OJT)\main.obj
118 $(OJT)\make_s_table.exe: $(OJT)\make_s_table.obj $(OJT)\misc.obj $(OJT)\main.obj
121 $(OJT)\make_odd.exe: $(OJT)\make_odd.obj $(OJT)\misc.obj $(OJT)\main.obj
124 $(OJT)\make_p.exe: $(OJT)\make_p.obj $(OJT)\misc.obj $(OJT)\main.obj
127 $(OJT)\make_s.exe: $(OJT)\make_s.obj $(OJT)\misc.obj $(OJT)\main.obj
130 $(OJT)\make_fp.exe: $(OJT)\make_fp.obj $(OJT)\misc.obj $(OJT)\main.obj
133 $(OJT)\make_ip.exe: $(OJT)\make_ip.obj $(OJT)\misc.obj $(OJT)\main.obj
136 install: $(GENERATED_FILES) $(LIBFILE) $(INCFILES)
141 $(DEL) $(LIBFILE) $(GENERATED_FILES)