diff options
Diffstat (limited to 'src/lib/libcrypto/des/makefile.bc')
| -rw-r--r-- | src/lib/libcrypto/des/makefile.bc | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/lib/libcrypto/des/makefile.bc b/src/lib/libcrypto/des/makefile.bc new file mode 100644 index 0000000000..1fe6d4915a --- /dev/null +++ b/src/lib/libcrypto/des/makefile.bc | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | # | ||
| 2 | # Origional BC Makefile from Teun <Teun.Nijssen@kub.nl> | ||
| 3 | # | ||
| 4 | # | ||
| 5 | CC = bcc | ||
| 6 | TLIB = tlib /0 /C | ||
| 7 | # note: the -3 flag produces code for 386, 486, Pentium etc; omit it for 286s | ||
| 8 | OPTIMIZE= -3 -O2 | ||
| 9 | #WINDOWS= -W | ||
| 10 | CFLAGS = -c -ml -d $(OPTIMIZE) $(WINDOWS) -DMSDOS | ||
| 11 | LFLAGS = -ml $(WINDOWS) | ||
| 12 | |||
| 13 | .c.obj: | ||
| 14 | $(CC) $(CFLAGS) $*.c | ||
| 15 | |||
| 16 | .obj.exe: | ||
| 17 | $(CC) $(LFLAGS) -e$*.exe $*.obj libdes.lib | ||
| 18 | |||
| 19 | all: $(LIB) destest.exe rpw.exe des.exe speed.exe | ||
| 20 | |||
| 21 | # "make clean": use a directory containing only libdes .exe and .obj files... | ||
| 22 | clean: | ||
| 23 | del *.exe | ||
| 24 | del *.obj | ||
| 25 | del libdes.lib | ||
| 26 | del libdes.rsp | ||
| 27 | |||
| 28 | OBJS= cbc_cksm.obj cbc_enc.obj ecb_enc.obj pcbc_enc.obj \ | ||
| 29 | qud_cksm.obj rand_key.obj set_key.obj str2key.obj \ | ||
| 30 | enc_read.obj enc_writ.obj fcrypt.obj cfb_enc.obj \ | ||
| 31 | ecb3_enc.obj ofb_enc.obj cbc3_enc.obj read_pwd.obj\ | ||
| 32 | cfb64enc.obj ofb64enc.obj ede_enc.obj cfb64ede.obj\ | ||
| 33 | ofb64ede.obj supp.obj | ||
| 34 | |||
| 35 | LIB= libdes.lib | ||
| 36 | |||
| 37 | $(LIB): $(OBJS) | ||
| 38 | del $(LIB) | ||
| 39 | makersp "+%s &\n" &&| | ||
| 40 | $(OBJS) | ||
| 41 | | >libdes.rsp | ||
| 42 | $(TLIB) libdes.lib @libdes.rsp,nul | ||
| 43 | del libdes.rsp | ||
| 44 | |||
| 45 | destest.exe: destest.obj libdes.lib | ||
| 46 | rpw.exe: rpw.obj libdes.lib | ||
| 47 | speed.exe: speed.obj libdes.lib | ||
| 48 | des.exe: des.obj libdes.lib | ||
| 49 | |||
| 50 | |||
