SUBDIRS := \
  mtk_mnld \
  gps_hal \
  gnss_test \
  gpslog \

TARGET := \
  gps_hal/libgnsshal.so \
  mtk_mnld/mnld \
  gnss_test/mnld_test \
  gpslog/gpslog \

all:${TARGET}
.PHONY : all
${TARGET}:$(SUBDIRS)
	@echo $(SUBDIRS)

$(SUBDIRS):
	make -C $@
.PHONY : $(SUBDIRS)
	
.PHONY : clean
clean:
	for dir in $(SUBDIRS);\
	do $(MAKE) -C $$dir clean||exit 1;\
	done
