Use AM_CPPFLAGS instead of INCLUDES in Makefile.am files, as the later is no longer...
[mono.git] / mono / wrapper / Makefile.am
1 lib_LTLIBRARIES = libmonowrapper.la
2
3 AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
4
5 if HOST_WIN32
6 # glob.c doesnt build under windows
7 SRC=                    \
8         wrapper.c       \
9         #
10 else
11 SRC=                    \
12         glob.c          \
13         wrapper.c       \
14         #
15 endif
16
17 libmonowrapper_la_SOURCES = $(SRC)
18
19 libmonowrapperincludedir = $(includedir)/mono/wrapper
20
21 libmonowrapperinclude_HEADERS = 
22         wrapper.h       
23
24 noinst_HEADERS = 
25
26 libmonowrapper.def: genwrapper.pl
27         $(srcdir)/genwrapper.pl -d >libmonowrapper.def
28
29 Wrapper.cs: genwrapper.pl
30         $(srcdir)/genwrapper.pl -c >Wrapper.cs
31
32 libmonowrapper.dll: $(libmonowrapper_la_OBJECTS) libmonowrapper.rc libmonowrapper.def
33         ./build-dll libmonowrapper 0.1
34
35
36 wrapper.h: genwrapper.pl
37         $(srcdir)/genwrapper.pl >wrapper.h
38
39 BUILT_SOURCES = wrapper.h Wrapper.cs libmonowrapper.def
40
41 CLEANFILES = $(BUILT_SOURCES) lib*.a lib*.dll
42
43 EXTRA_DIST = genwrapper.pl
44