Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. thisdir = class/Npgsql
  2. SUBDIRS =
  3. include ../../build/rules.make
  4. LIBRARY = Npgsql.dll
  5. LIBRARY_SNK = Npgsql/Npgsql.snk
  6. LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll /r:System.Xml.dll \
  7. /r:System.Data.dll \
  8. /r:Mono.Security.dll \
  9. @Npgsql.dll.resources
  10. TEST_MCS_FLAGS = /r:$(corlib) /r:System.dll /r:System.Xml.dll \
  11. /r:System.Web.dll /r:System.Data.dll \
  12. -nowarn:0618 -nowarn:219 -nowarn:169
  13. LIB_MCS_FLAGS_RESOURCES = $(LIB_MCS_FLAGS)
  14. # TODO: We need System.Web.UI.WebControls to build DataAdapterTests.cs
  15. # and DataReaderTests.cs
  16. EXTRA_DISTFILES = \
  17. LICENSE.txt \
  18. README.txt \
  19. RELEASENOTES.txt \
  20. STATUS.txt \
  21. TODO.txt \
  22. Npgsql/Npgsql.snk \
  23. Npgsql/Npgsql.pub \
  24. $(RESX_RES:.resources=.resx) \
  25. $(OTHER_RES) \
  26. Npgsql.dll.resources
  27. CLEAN_FILES = $(RESX_RES)
  28. OTHER_RES = \
  29. Npgsql/NpgsqlConnection.bmp \
  30. Npgsql/NpgsqlCommand.bmp \
  31. Npgsql/NpgsqlDataAdapter.bmp
  32. RESX_RES = \
  33. Npgsql/NpgsqlState.resources \
  34. Npgsql/NpgsqlClosedState.resources \
  35. Npgsql/NpgsqlParameterCollection.resources \
  36. Npgsql/NpgsqlCommand.resources \
  37. Npgsql/NpgsqlConnectedState.resources \
  38. Npgsql/NpgsqlParameter.resources \
  39. Npgsql/NpgsqlConnection.resources \
  40. Npgsql/NpgsqlReadyState.resources \
  41. Npgsql/NpgsqlTransaction.resources \
  42. Npgsql/NpgsqlEventLog.resources \
  43. Npgsql/NpgsqlException.resources \
  44. Npgsql/PGUtil.resources \
  45. NpgsqlTypes/NpgsqlTypesHelper.resources
  46. include ../../build/library.make
  47. $(the_lib): $(RESX_RES) $(OTHER_RES)
  48. $(RESX_RES): %.resources: %.resx
  49. $(RESGEN) `echo $< | $(PLATFORM_CHANGE_SEPARATOR_CMD)`