2
0

makefile.bc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. .c.obj:
  13. $(CC) $(CFLAGS) $*.c
  14. .obj.exe:
  15. $(CC) $(LFLAGS) -e$*.exe $*.obj libdes.lib
  16. all: $(LIB) destest.exe rpw.exe des.exe speed.exe
  17. # "make clean": use a directory containing only libdes .exe and .obj files...
  18. clean:
  19. del *.exe
  20. del *.obj
  21. del libdes.lib
  22. del libdes.rsp
  23. OBJS= cbc_cksm.obj cbc_enc.obj ecb_enc.obj pcbc_enc.obj \
  24. qud_cksm.obj rand_key.obj set_key.obj str2key.obj \
  25. enc_read.obj enc_writ.obj fcrypt.obj cfb_enc.obj \
  26. ecb3_enc.obj ofb_enc.obj cbc3_enc.obj read_pwd.obj\
  27. cfb64enc.obj ofb64enc.obj ede_enc.obj cfb64ede.obj\
  28. ofb64ede.obj supp.obj
  29. LIB= libdes.lib
  30. $(LIB): $(OBJS)
  31. del $(LIB)
  32. makersp "+%s &\n" &&|
  33. $(OBJS)
  34. | >libdes.rsp
  35. $(TLIB) libdes.lib @libdes.rsp,nul
  36. del libdes.rsp
  37. destest.exe: destest.obj libdes.lib
  38. rpw.exe: rpw.obj libdes.lib
  39. speed.exe: speed.obj libdes.lib
  40. des.exe: des.obj libdes.lib