1*0Sstevel@tonic-gate# 2*0Sstevel@tonic-gate# Origional BC Makefile from Teun <Teun.Nijssen@kub.nl> 3*0Sstevel@tonic-gate# 4*0Sstevel@tonic-gate# 5*0Sstevel@tonic-gateCC = bcc 6*0Sstevel@tonic-gateTLIB = tlib /0 /C 7*0Sstevel@tonic-gate# note: the -3 flag produces code for 386, 486, Pentium etc; omit it for 286s 8*0Sstevel@tonic-gateOPTIMIZE= -3 -O2 9*0Sstevel@tonic-gate#WINDOWS= -W 10*0Sstevel@tonic-gateCFLAGS = -c -ml -d $(OPTIMIZE) $(WINDOWS) -DMSDOS 11*0Sstevel@tonic-gateLFLAGS = -ml $(WINDOWS) 12*0Sstevel@tonic-gate 13*0Sstevel@tonic-gate.c.obj: 14*0Sstevel@tonic-gate $(CC) $(CFLAGS) $*.c 15*0Sstevel@tonic-gate 16*0Sstevel@tonic-gate.obj.exe: 17*0Sstevel@tonic-gate $(CC) $(LFLAGS) -e$*.exe $*.obj libdes.lib 18*0Sstevel@tonic-gate 19*0Sstevel@tonic-gateall: $(LIB) destest.exe rpw.exe des.exe speed.exe 20*0Sstevel@tonic-gate 21*0Sstevel@tonic-gate# "make clean": use a directory containing only libdes .exe and .obj files... 22*0Sstevel@tonic-gateclean: 23*0Sstevel@tonic-gate del *.exe 24*0Sstevel@tonic-gate del *.obj 25*0Sstevel@tonic-gate del libdes.lib 26*0Sstevel@tonic-gate del libdes.rsp 27*0Sstevel@tonic-gate 28*0Sstevel@tonic-gateOBJS= cbc_cksm.obj cbc_enc.obj ecb_enc.obj pcbc_enc.obj \ 29*0Sstevel@tonic-gate qud_cksm.obj rand_key.obj set_key.obj str2key.obj \ 30*0Sstevel@tonic-gate enc_read.obj enc_writ.obj fcrypt.obj cfb_enc.obj \ 31*0Sstevel@tonic-gate ecb3_enc.obj ofb_enc.obj cbc3_enc.obj read_pwd.obj\ 32*0Sstevel@tonic-gate cfb64enc.obj ofb64enc.obj ede_enc.obj cfb64ede.obj\ 33*0Sstevel@tonic-gate ofb64ede.obj supp.obj 34*0Sstevel@tonic-gate 35*0Sstevel@tonic-gateLIB= libdes.lib 36*0Sstevel@tonic-gate 37*0Sstevel@tonic-gate$(LIB): $(OBJS) 38*0Sstevel@tonic-gate del $(LIB) 39*0Sstevel@tonic-gate makersp "+%s &\n" &&| 40*0Sstevel@tonic-gate $(OBJS) 41*0Sstevel@tonic-gate| >libdes.rsp 42*0Sstevel@tonic-gate $(TLIB) libdes.lib @libdes.rsp,nul 43*0Sstevel@tonic-gate del libdes.rsp 44*0Sstevel@tonic-gate 45*0Sstevel@tonic-gatedestest.exe: destest.obj libdes.lib 46*0Sstevel@tonic-gaterpw.exe: rpw.obj libdes.lib 47*0Sstevel@tonic-gatespeed.exe: speed.obj libdes.lib 48*0Sstevel@tonic-gatedes.exe: des.obj libdes.lib 49*0Sstevel@tonic-gate 50*0Sstevel@tonic-gate 51