makefile.msc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. TOP = ..
  2. PRJ_TOP = .
  3. PACKAGE = gimp
  4. !INCLUDE $(TOP)\glib\build\win32\make.msc
  5. !INCLUDE $(PRJ_TOP)\gimpdefs.msc
  6. PKG_VER = $(GIMP_VER)
  7. # in required build order
  8. # ./themes gets extra handling below
  9. SUBDIRS = \
  10. libgimpbase \
  11. libgimpcolor \
  12. libgimpmath \
  13. libgimpconfig \
  14. libgimpthumb \
  15. libgimpwidgets \
  16. libgimp \
  17. # libgimptool \
  18. libgimpmodule \
  19. regexrepl \
  20. cursors \
  21. app \
  22. # plug-ins \
  23. modules
  24. sub-all:
  25. for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d
  26. sub-one:
  27. cd $(THIS)
  28. nmake -nologo -f makefile.msc $(TARGET)
  29. cd ..
  30. clean :: sub-clean
  31. sub-clean:
  32. for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d TARGET=clean
  33. sub-themes:
  34. cd cursors
  35. nmake -nologo -f makefile.msc
  36. cd ..
  37. cd themes\Default\images
  38. nmake -nologo -f makefile.msc
  39. cd ..\..\..
  40. all : \
  41. $(PRJ_TOP)\config.h \
  42. sub-themes \
  43. sub-all
  44. $(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
  45. copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
  46. RESOURCE = $(PACKAGE).res
  47. $(PACKAGE).lib : $(OBJECTS)
  48. lib /out:$(PACKAGE).lib $(OBJECTS)
  49. $(PACKAGE)-$(PKG_VER).dll : $(PKG_LINK) $(OBJECTS) $(PACKAGE).def
  50. $(CC) $(CFLAGS) -LD -Fe$(PACKAGE)-$(PKG_VER).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def
  51. $(PACKAGE).exe : $(OBJECTS) $(PACKAGE).def $(PACKAGE).res
  52. $(CC) $(CFLAGS) -Fe$(PACKAGE).exe $(PACKAGE).res $(OBJECTS) $(PKG_LINK) \
  53. user32.lib advapi32.lib shell32.lib wsock32.lib winspool.lib $(LDFLAGS) /def:$(PACKAGE).def
  54. .c.obj :
  55. $(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<