2009-04-07 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mono / wrapper / Makefile.am
index 89b21f9db6c8960eb9e0e92e77a02010c8d026dc..43357f1307eb0c079fe113d948303459129b7dfd 100644 (file)
@@ -2,8 +2,19 @@ lib_LTLIBRARIES = libmonowrapper.la
 
 INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir)
 
-libmonowrapper_la_SOURCES =            \
-       wrapper.c       
+if PLATFORM_WIN32
+# glob.c doesnt build under windows
+SRC=                   \
+       wrapper.c       \
+       #
+else
+SRC=                   \
+       glob.c          \
+       wrapper.c       \
+       #
+endif
+
+libmonowrapper_la_SOURCES = $(SRC)
 
 libmonowrapperincludedir = $(includedir)/mono/wrapper
 
@@ -27,7 +38,7 @@ wrapper.h: genwrapper.pl
 
 BUILT_SOURCES = wrapper.h Wrapper.cs libmonowrapper.def
 
-CLEANFILES += $(BUILT_SOURCES) lib*.a lib*.dll
+CLEANFILES = $(BUILT_SOURCES) lib*.a lib*.dll
 
 EXTRA_DIST = genwrapper.pl