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