1# 2# Origional BC Makefile from Teun <Teun.Nijssen@kub.nl> 3# 4# 5CC = bcc 6TLIB = tlib /0 /C 7# note: the -3 flag produces code for 386, 486, Pentium etc; omit it for 286s 8OPTIMIZE= -3 -O2 9#WINDOWS= -W 10CFLAGS = -c -ml -d $(OPTIMIZE) $(WINDOWS) -DMSDOS 11LFLAGS = -ml $(WINDOWS) 12 13.c.obj: 14 $(CC) $(CFLAGS) $*.c 15 16.obj.exe: 17 $(CC) $(LFLAGS) -e$*.exe $*.obj libdes.lib 18 19all: $(LIB) destest.exe rpw.exe des.exe speed.exe 20 21# "make clean": use a directory containing only libdes .exe and .obj files... 22clean: 23 del *.exe 24 del *.obj 25 del libdes.lib 26 del libdes.rsp 27 28OBJS= 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 35LIB= 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 45destest.exe: destest.obj libdes.lib 46rpw.exe: rpw.obj libdes.lib 47speed.exe: speed.obj libdes.lib 48des.exe: des.obj libdes.lib 49 50 51