73 lines
3.0 KiB
Makefile
Executable File
73 lines
3.0 KiB
Makefile
Executable File
|
|
## rule to build a sample application
|
|
# $(1): the dir of sample application
|
|
# $(2): the build command
|
|
define build_sample
|
|
@if [ -d $(1) ]; then \
|
|
echo -e "\e[0;32;1m--Compiling $(1)...\e[0;36;1m \e[0m"; \
|
|
cd $(1); \
|
|
$(2) || exit -1 ; \
|
|
cd -; \
|
|
fi
|
|
|
|
endef
|
|
|
|
|
|
all:
|
|
echo -e "\e[0;32;1m--Compiling test...\e[0;36;1m \e[0m";
|
|
$(call build_sample,modules/sys, make)
|
|
$(call build_sample,modules/vdec, make)
|
|
# $(call build_sample,modules/vpu, make)
|
|
# $(call build_sample,modules/jpege, make)
|
|
$(call build_sample,modules/vgs, make -f Makefile.linux)
|
|
$(call build_sample,modules/tde, make -f Makefile.linux)
|
|
# $(call build_sample,modules/ioe, make)
|
|
# $(call build_sample,modules/vgs2, make)
|
|
$(call build_sample,modules/stm, make)
|
|
$(call build_sample,modules/audio, make -f Makefile.linux)
|
|
$(call build_sample,modules/lcm, make)
|
|
$(call build_sample,modules/vou, make)
|
|
$(call build_sample,system/vdppo, make -f Makefile.linux)
|
|
$(call build_sample,system/slt_vdppo, make -f Makefile.linux)
|
|
$(call build_sample,system/uvc_preview, make)
|
|
$(call build_sample,system/lp_demo, make)
|
|
$(call build_sample,modules/fb, make)
|
|
# $(call build_sample,system/prg, make)
|
|
# $(call build_sample,modules/vicap, make)
|
|
# $(call build_sample,modules/veu, make)
|
|
# $(call build_sample,modules/camif, make)
|
|
# $(call build_sample,system/media_demo, make demo_defconfig;make clean;make all)
|
|
# $(call build_sample,modules/src, make)
|
|
# $(call build_sample,system/rpcvideodemo, make)
|
|
# $(call build_sample,system/veu, make)
|
|
# $(call build_sample,system/prg_test, make)
|
|
$(call build_sample,system/maxloading_vdppo, make -f Makefile.linux)
|
|
$(call build_sample,system/simple_test, make)
|
|
|
|
clean:
|
|
@echo -e "\e[0;32;1m--cleaning test...\e[0;36;1m \e[0m";
|
|
$(call build_sample,modules/sys, make clean)
|
|
$(call build_sample,modules/vdec, make clean)
|
|
$(call build_sample,modules/vpu, make clean)
|
|
$(call build_sample,modules/jpege, make clean)
|
|
$(call build_sample,modules/vgs, make -f Makefile.linux clean)
|
|
$(call build_sample,modules/tde, make -f Makefile.linux clean)
|
|
$(call build_sample,modules/ioe, make clean)
|
|
$(call build_sample,modules/vgs2, make clean)
|
|
$(call build_sample,modules/stm, make clean)
|
|
$(call build_sample,modules/audio, make -f Makefile.linux clean)
|
|
$(call build_sample,modules/vou, make clean)
|
|
$(call build_sample,system/vdppo, make -f Makefile.linux clean)
|
|
$(call build_sample,system/slt_vdppo, make -f Makefile.linux clean)
|
|
$(call build_sample,system/prg, make clean)
|
|
$(call build_sample,modules/vicap, make clean)
|
|
$(call build_sample,modules/veu, make clean)
|
|
$(call build_sample,modules/camif, make clean)
|
|
$(call build_sample,modules/src, make clean)
|
|
$(call build_sample,system/rpcvideodemo, make clean)
|
|
$(call build_sample,system/veu, make clean)
|
|
$(call build_sample,system/prg_test, make clean)
|
|
$(call build_sample,system/maxloading_vdppo, make -f Makefile.linux clean)
|
|
$(call build_sample,system/simple_test, make clean)
|
|
$(call build_sample,system/lp_demo, make clean)
|
|
$(call build_sample,system/uvc_preview, make clean)
|