mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-29 08:19:42 +08:00
8082501b9c
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
21 lines
424 B
Makefile
21 lines
424 B
Makefile
# Copyright (c) 2014 Cesanta Software
|
|
# All rights reserved
|
|
|
|
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) CFLAGS_EXTRA="$(CFLAGS_EXTRA)" -C $@
|
|
|
|
clean:
|
|
for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done
|