ofproto_libofproto_la_CPPFLAGS = $(AM_CPPFLAGS)
ofproto_libofproto_la_CFLAGS = $(AM_CFLAGS)
ofproto_libofproto_la_LIBADD = lib/libsflow.la
+if WIN32
+ofproto_libofproto_la_LIBADD += ${PTHREAD_LIBS}
+endif
+
# Distribute this generated file in order not to require Python at
# build time if ofproto/ipfix.xml is not modified.
EXTRA_DIST += ofproto/ipfix.xml
dist_noinst_SCRIPTS = ofproto/ipfix-gen-entities
ofproto/ipfix-entities.def: ofproto/ipfix.xml ofproto/ipfix-gen-entities
- $(run_python) $(srcdir)/ofproto/ipfix-gen-entities $< > $@
+ $(run_python) $(srcdir)/ofproto/ipfix-gen-entities $< > $@.tmp
+ mv $@.tmp $@