mongoose/examples/Makefile

21 lines
635 B
Makefile
Raw Normal View History

2014-08-05 23:40:51 +08:00
# Copyright (c) 2014 Cesanta Software
# All rights reserved
# `wildcard ./*/` works in both linux and linux/wine, while `wildcard */` enumerates nothing under wine
SUBDIRS = $(sort $(dir $(wildcard ./*/)))
SUBDIRS:=$(filter-out ./ ./CC3200/ ./ESP8266_RTOS/ ./mbed/ ./MSP432/ ./nRF51/ ./nRF52/ ./NXP_K64/ ./NXP_LPC4088/ ./PIC32/ ./STM32F4_CC3100/ ./TM4C129/ ./WinCE/, $(SUBDIRS))
ifeq ($(OS), Windows_NT)
SUBDIRS:=$(filter-out ./netcat/ ./raspberry_pi_mjpeg_led/ ./captive_dns_server/, $(SUBDIRS))
endif
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):
@$(MAKE) -C $@
2014-02-20 20:13:59 +08:00
2012-10-14 22:00:04 +08:00
clean:
for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done