--- a/sys/winks/Makefile.am	2010-04-29 03:59:29.000000000 -0500
+++ b/sys/winks/Makefile.am	2012-03-12 16:02:31.711063589 -0500
@@ -1,9 +1,22 @@
 # This plugin isn't buildable with autotools at this point in time, so just
 # ensure everything's listed in EXTRA_DIST
 
-EXTRA_DIST = \
-	gstksclock.c gstksclock.h \
-	gstksvideodevice.c gstksvideodevice.h \
-	gstksvideosrc.c gstksvideosrc.h \
-	kshelpers.c kshelpers.h \
-	ksvideohelpers.c ksvideohelpers.h
+plugin_LTLIBRARIES = libgstwinks.la
+
+libgstwinks_la_SOURCES =  gstksclock.c gstksvideodevice.c gstksvideosrc.c kshelpers.c ksvideohelpers.c
+libgstwinks_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) \
+	$(GST_PLUGINS_BASE_CFLAGS) $(DIRECTX_CFLAGS)
+libgstwinks_la_LIBADD = $(DIRECTDRAW_LIBS) \
+	$(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \
+	-lgstinterfaces-$(GST_MAJORMINOR)
+libgstwinks_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(DIRECTX_LDFLAGS) -lksuser -luuid -lstrmiids -lsetupapi
+libgstwinks_la_LIBTOOLFLAGS = --tag=disable-static
+
+noinst_HEADERS= gstksclock.h gstksvideodevice.h gstksvideosrc.h kshelpers.h ksvideohelpers.h
+
+#EXTRA_DIST = \
+#	gstksclock.c gstksclock.h \
+#	gstksvideodevice.c gstksvideodevice.h \
+#	gstksvideosrc.c gstksvideosrc.h \
+#	kshelpers.c kshelpers.h \
+#	ksvideohelpers.c ksvideohelpers.h

