You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

67 lines
1.6 KiB

  1. # $Id: $
  2. pkglibdir = $(libdir)/ThePimp
  3. pimp_sources = \
  4. src/AssemblyInfo.cs \
  5. src/Main.cs \
  6. src/AboutWindow.cs \
  7. src/ErrorWindow.cs \
  8. src/MainWindow.cs \
  9. src/NewFile.cs \
  10. src/OpenFile.cs \
  11. src/PictureView.cs \
  12. src/SaveFile.cs \
  13. src/ToolBox.cs \
  14. gtk-gui/generated.cs \
  15. gtk-gui/ThePimp.AboutWindow.cs \
  16. gtk-gui/ThePimp.ErrorWindow.cs \
  17. gtk-gui/ThePimp.MainWindow.cs \
  18. gtk-gui/ThePimp.NewFile.cs \
  19. gtk-gui/ThePimp.OpenFile.cs \
  20. gtk-gui/ThePimp.PictureView.cs \
  21. gtk-gui/ThePimp.SaveFile.cs \
  22. gtk-gui/ThePimp.ToolBox.cs
  23. pimp_resources = \
  24. gtk-gui/gui.stetic \
  25. gtk-gui/objects.xml \
  26. images/about.png
  27. image_sources = \
  28. images/about.svg
  29. if USE_CSHARP
  30. pkglib_DATA = ThePimp.exe
  31. bin_SCRIPTS = pimp
  32. endif
  33. if USE_GTKSHARP
  34. pimp_flags = -pkg:gtk-sharp-2.0 -r:Mono.Posix
  35. else
  36. pimp_flags = \
  37. -r:$(top_srcdir)/win32/gtksharp/bin/pango-sharp.dll \
  38. -r:$(top_srcdir)/win32/gtksharp/bin/atk-sharp.dll \
  39. -r:$(top_srcdir)/win32/gtksharp/bin/gdk-sharp.dll \
  40. -r:$(top_srcdir)/win32/gtksharp/bin/gtk-sharp.dll \
  41. -r:$(top_srcdir)/win32/gtksharp/bin/glib-sharp.dll \
  42. -r:Mono.Posix
  43. endif
  44. EXTRA_DIST = $(pimp_sources) $(pimp_resources) $(image_sources)
  45. ThePimp.exe: ../pipi-sharp/pipi-sharp.dll $(pimp_sources) $(pimp_resources)
  46. cp ../pipi-sharp/pipi-sharp.dll .
  47. cp ../pipi-sharp/pipi-sharp.dll.config .
  48. cp ../pipi-sharp/pipi-sharp.dll.mdb .
  49. $(GMCS) -debug -codepage:utf8 -target:winexe -out:$@ $(pimp_flags) \
  50. -lib:./ -r:pipi-sharp.dll \
  51. $(addprefix $(srcdir)/, $(pimp_sources)) \
  52. $(foreach x, $(pimp_resources), \
  53. -resource:$(srcdir)/$x,ThePimp.$(subst /,.,$x))
  54. clean-local:
  55. rm -f pipi-sharp.dll.config
  56. rm -f *.exe *.dll *.mdb