mirror of
https://github.com/cesanta/mongoose.git
synced 2025-06-07 09:27:05 +08:00
Enable building of example/Makefile on Win32
Adding example/.gitignore to ignore *.exe Appending -lws2_32 at the end of CFLAGS_EXTRA if running make on Windows to enable easy compiling under that platform. Obsoletes pull request #454
This commit is contained in:
parent
e4ad3010be
commit
8082501b9c
1
examples/.gitignore
vendored
Normal file
1
examples/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.exe
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user