mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Merge pull request #456 from sebgod/fix-win32-examples-using-extra
Enable building of example/Makefile on Win32
This commit is contained in:
commit
6c09c303d0
2 files changed
+7
-1
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
*.exe
|
||||||
+6
-1
@@ -3,13 +3,18 @@
|
|||||||
|
|
||||||
SUBDIRS = $(sort $(filter-out csharp/, $(dir $(wildcard */))))
|
SUBDIRS = $(sort $(filter-out csharp/, $(dir $(wildcard */))))
|
||||||
X = $(SUBDIRS)
|
X = $(SUBDIRS)
|
||||||
|
ifdef WINDIR
|
||||||
|
# appending the Winsock2 library at the end of the compiler
|
||||||
|
# invocation
|
||||||
|
CFLAGS_EXTRA += -lws2_32
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: $(SUBDIRS)
|
.PHONY: $(SUBDIRS)
|
||||||
|
|
||||||
all: $(SUBDIRS)
|
all: $(SUBDIRS)
|
||||||
|
|
||||||
$(SUBDIRS):
|
$(SUBDIRS):
|
||||||
@$(MAKE) -C $@
|
@$(MAKE) CFLAGS_EXTRA="$(CFLAGS_EXTRA)" -C $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done
|
for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done
|
||||||
Reference in new issue
Block a user