makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #
  2. # Makefile for jpeg.lib
  3. #
  4. # Environment variable Requirements:
  5. #
  6. # INCLUDE=foo // can be set to anything, must be set
  7. # PATH= // must have proper nmake on path
  8. # FEDROOT=<path> // MUST point to base of fed src enlistment
  9. #
  10. # nmake args:
  11. #
  12. # Clean // will delete all files in destination dir
  13. # Full // will Clean, then build all derived files
  14. # Shell // opens os-specific cmd/command shell (helps to debug build)
  15. # RETAIL= // builds a retail build (default is DEBUG)
  16. # // no argument is used for debug builds
  17. #
  18. #
  19. # All derived files (temp files, .res, output of midl, *.obj, *.exe/.dll...
  20. # are placed directly into the appropriate tree under $(FEDROOT)\Objs.
  21. # The $(FEDROOT)\Objs tree is created on demand.
  22. # Since no derived files are placed in the source tree, multiple builds
  23. # can be run SIMULTANEOUSLY.
  24. MAINTARGROOT=jpeg
  25. MAINTARGEXT=lib
  26. !include "..\makefile.inc"
  27. OBJS= $(DESTDIR)\decom.obj \
  28. $(DESTDIR)\jcomapi.obj \
  29. $(DESTDIR)\jdapimin.obj \
  30. $(DESTDIR)\jdapistd.obj \
  31. $(DESTDIR)\jdcoefct.obj \
  32. $(DESTDIR)\jdcolor.obj \
  33. $(DESTDIR)\jddctmgr.obj \
  34. $(DESTDIR)\jdhuff.obj \
  35. $(DESTDIR)\jdinput.obj \
  36. $(DESTDIR)\jdmainct.obj \
  37. $(DESTDIR)\jdmarker.obj \
  38. $(DESTDIR)\jdmaster.obj \
  39. $(DESTDIR)\jdpostct.obj \
  40. $(DESTDIR)\jdsample.obj \
  41. $(DESTDIR)\jerror.obj \
  42. $(DESTDIR)\jidctflt.obj \
  43. $(DESTDIR)\jmemmgr.obj \
  44. $(DESTDIR)\jmemnobs.obj \
  45. $(DESTDIR)\jpegd.obj \
  46. $(DESTDIR)\jutils.obj
  47. LIBARGS= $(NOLOGO) /out:$(MAINTARGFULLPATH)
  48. #
  49. # Dependecies start here
  50. #
  51. $(MAINTARGFULLPATH): $(DESTDIR) $(OBJS)
  52. lib $(LIBARGS) $(OBJS)
  53. .cpp{$(DESTDIR)}.obj:
  54. $(CC) $(CARGS) $(SRCDIR)\$(@B).cpp
  55. .c{$(DESTDIR)}.obj:
  56. $(CC) $(CARGS) $(@B).c