makefile.dmc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Makefile for Digital Mars C++ Compiler
  2. # http://www.rarlab.com
  3. # http://www.digitalmars.com
  4. #
  5. # DEFINES: UNRAR RARDLL GUI SFX_MODULE SILENT
  6. NAME = unrar
  7. EXT = exe
  8. CPP = dmc
  9. LINK = link
  10. # --------------
  11. # Release Build
  12. # --------------
  13. DEFINES = -DNDEBUG -D_MSC_VER -DUNRAR
  14. CPPFLAGS = -o+all -ff -Nc -g- -Ae
  15. LNKFLAGS = /EXETYPE:NT /MACHINE:i386 /SUBSYSTEM:CONSOLE /NOLOGO /NODEBUG /NOCODEVIEW /PACKFUNCTIONS
  16. # --------------
  17. # Debug Build
  18. # --------------
  19. #DEFINES = -D_DEBUG -D_MSC_VER -DUNRAR
  20. #CPPFLAGS = -o+none -Nc -S -gf -Ae
  21. #LNKFLAGS = /EXETYPE:NT /MACHINE:i386 /SUBSYSTEM:CONSOLE /NOLOGO /DEBUG
  22. OBJ = rar.obj strlist.obj strfn.obj pathfn.obj savepos.obj smallfn.o global.obj \
  23. file.obj filefn.obj filcreat.obj archive.obj arcread.obj unicode.obj \
  24. system.obj isnt.obj crypt.obj crc.obj rawread.obj encname.obj \
  25. resource.obj match.obj timefn.obj rdwrfn.obj consio.obj options.obj \
  26. ulinks.obj errhnd.obj rarvm.obj rijndael.obj getbits.obj sha1.obj \
  27. extinfo.obj extract.obj volume.obj find.obj unpack.obj cmddata.obj \
  28. filestr.obj recvol.obj rs.obj scantree.obj \
  29. list.obj \
  30. # dll.obj \
  31. LIB = kernel32.lib+user32.lib+advapi32.lib
  32. #DEF = dll.def
  33. link: $(OBJ)
  34. $(LINK) $(LNKFLAGS) $(OBJ), $(NAME).$(EXT), $(NAME).map, $(LIB), $(DEF)
  35. .c.obj:
  36. $(CPP) $(CPPFLAGS) $(DEFINES) -c $< -o $@
  37. .cpp.obj:
  38. $(CPP) $(CPPFLAGS) $(DEFINES) -c $< -o $@
  39. clean:
  40. del $(OBJ)
  41. del $(NAME).$(EXT)
  42. del $(NAME).map