include ./../../linux.mk

# app_sys.cpp 已合并到 RTU makefile 中，此处仅管理子模块
SUBDIRS := ./libmodbus_m ./libweb_server ./libcom_router ./libself_ptl ./libiec ./libplc ./RTU

.PHONY: all clean rebuild

all:
	@for d in $(SUBDIRS); do [ -f "$$d/makefile" ] && (cd "$$d" && $(MAKE) -f makefile all) || true; done

clean:
	@for d in $(SUBDIRS); do [ -f "$$d/makefile" ] && (cd "$$d" && $(MAKE) -f makefile clean) || true; done

rebuild: clean all
