2014-08-05 23:40:51 +08:00
|
|
|
# Copyright (c) 2014 Cesanta Software
|
|
|
|
# All rights reserved
|
|
|
|
|
2014-10-10 20:58:45 +08:00
|
|
|
SUBDIRS = $(sort $(filter-out csharp/, $(dir $(wildcard */))))
|
|
|
|
X = $(SUBDIRS)
|
2015-01-10 16:41:58 +08:00
|
|
|
ifdef WINDIR
|
|
|
|
# appending the Winsock2 library at the end of the compiler
|
|
|
|
# invocation
|
|
|
|
CFLAGS_EXTRA += -lws2_32
|
|
|
|
endif
|
2010-05-04 04:46:42 +08:00
|
|
|
|
2014-10-10 20:58:45 +08:00
|
|
|
.PHONY: $(SUBDIRS)
|
2012-09-25 04:25:06 +08:00
|
|
|
|
2014-10-10 20:58:45 +08:00
|
|
|
all: $(SUBDIRS)
|
2012-09-25 04:25:06 +08:00
|
|
|
|
2014-10-10 20:58:45 +08:00
|
|
|
$(SUBDIRS):
|
2015-01-10 16:41:58 +08:00
|
|
|
@$(MAKE) CFLAGS_EXTRA="$(CFLAGS_EXTRA)" -C $@
|
2014-02-20 20:13:59 +08:00
|
|
|
|
2012-10-14 22:00:04 +08:00
|
|
|
clean:
|
2015-01-10 16:41:58 +08:00
|
|
|
for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done
|