Commit 6c09c303 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #456 from sebgod/fix-win32-examples-using-extra

Enable building of example/Makefile on Win32
parents b6fde069 8082501b
......@@ -3,13 +3,18 @@
SUBDIRS = $(sort $(filter-out csharp/, $(dir $(wildcard */))))
X = $(SUBDIRS)
ifdef WINDIR
# appending the Winsock2 library at the end of the compiler
# invocation
CFLAGS_EXTRA += -lws2_32
endif
.PHONY: $(SUBDIRS)
all: $(SUBDIRS)
$(SUBDIRS):
@$(MAKE) -C $@
@$(MAKE) CFLAGS_EXTRA="$(CFLAGS_EXTRA)" -C $@
clean:
for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done
\ No newline at end of file
for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment