forked from phanikishoreg/CMSIS_5_NN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (22 loc) · 16.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
BASE_DIR=../
include Makefile.inc
WCC=/opt/wasi-sdk/bin/clang
WSYSROOT=/opt/wasi-sdk/share/wasi-sysroot/
WCFLAGS += --target=wasm32-wasi
C_SRC=CMSIS_5/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q15.c CMSIS_5/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q7.c CMSIS_5/CMSIS/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c CMSIS_5/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q15.c CMSIS_5/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q7.c CMSIS_5/CMSIS/NN/Source/NNSupportFunctions/arm_nntables.c CMSIS_5/CMSIS/NN/Source/NNSupportFunctions/arm_q7_to_q15_no_shift.c CMSIS_5/CMSIS/NN/Source/NNSupportFunctions/arm_q7_to_q15_reordered_no_shift.c CMSIS_5/CMSIS/NN/Source/FullyConnectedFunctions/arm_fully_connected_mat_q7_vec_q15.c CMSIS_5/CMSIS/NN/Source/FullyConnectedFunctions/arm_fully_connected_mat_q7_vec_q15_opt.c CMSIS_5/CMSIS/NN/Source/FullyConnectedFunctions/arm_fully_connected_q15.c CMSIS_5/CMSIS/NN/Source/FullyConnectedFunctions/arm_fully_connected_q15_opt.c CMSIS_5/CMSIS/NN/Source/FullyConnectedFunctions/arm_fully_connected_q7.c CMSIS_5/CMSIS/NN/Source/FullyConnectedFunctions/arm_fully_connected_q7_opt.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_1x1_HWC_q7_fast_nonsquare.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q15_basic.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q15_fast.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q15_fast_nonsquare.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_RGB.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_basic.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_basic_nonsquare.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_fast.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_fast_nonsquare.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_depthwise_separable_conv_HWC_q7.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_depthwise_separable_conv_HWC_q7_nonsquare.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_nn_mat_mult_kernel_q7_q15.c CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_nn_mat_mult_kernel_q7_q15_reordered.c CMSIS_5/CMSIS/NN/Source/ActivationFunctions/arm_nn_activations_q15.c CMSIS_5/CMSIS/NN/Source/ActivationFunctions/arm_nn_activations_q7.c CMSIS_5/CMSIS/NN/Source/ActivationFunctions/arm_relu_q15.c CMSIS_5/CMSIS/NN/Source/ActivationFunctions/arm_relu_q7.c CMSIS_5/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_copy_f32.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_copy_q15.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_copy_q31.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_copy_q7.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_fill_f32.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_fill_q15.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_fill_q31.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_fill_q7.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_float_to_q15.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_float_to_q31.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_float_to_q7.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_q15_to_float.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_q15_to_q31.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_q15_to_q7.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_q31_to_float.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_q31_to_q15.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_q31_to_q7.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_q7_to_float.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_q7_to_q15.c CMSIS_5/CMSIS/DSP/Source/SupportFunctions/arm_q7_to_q31.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_add_f32.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_add_q15.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_add_q31.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_cmplx_mult_f32.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_cmplx_mult_q15.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_cmplx_mult_q31.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_init_f32.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_init_q15.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_init_q31.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_inverse_f32.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_inverse_f64.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_mult_f32.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_mult_fast_q15.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_mult_fast_q31.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_mult_q15.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_mult_q31.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_scale_f32.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_scale_q15.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_scale_q31.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_sub_f32.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_sub_q15.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_sub_q31.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_trans_f32.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_trans_q15.c CMSIS_5/CMSIS/DSP/Source/MatrixFunctions/arm_mat_trans_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_32x64_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_32x64_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_fast_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_fast_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_init_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df2T_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df2T_f64.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df2T_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df2T_init_f64.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_stereo_df2T_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_stereo_df2T_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_fast_opt_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_fast_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_fast_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_opt_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_opt_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_partial_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_partial_fast_opt_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_partial_fast_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_partial_fast_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_partial_opt_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_partial_opt_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_partial_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_partial_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_partial_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_conv_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_correlate_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_correlate_fast_opt_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_correlate_fast_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_correlate_fast_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_correlate_opt_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_correlate_opt_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_correlate_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_correlate_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_correlate_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_decimate_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_decimate_fast_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_decimate_fast_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_decimate_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_decimate_init_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_decimate_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_decimate_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_decimate_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_fast_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_fast_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_init_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_init_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_interpolate_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_interpolate_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_interpolate_init_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_interpolate_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_interpolate_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_interpolate_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_lattice_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_lattice_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_lattice_init_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_lattice_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_lattice_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_lattice_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_sparse_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_sparse_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_sparse_init_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_sparse_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_sparse_init_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_sparse_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_sparse_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_fir_sparse_q7.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_iir_lattice_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_iir_lattice_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_iir_lattice_init_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_iir_lattice_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_iir_lattice_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_iir_lattice_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_init_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_norm_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_norm_init_f32.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_norm_init_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_norm_init_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_norm_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_norm_q31.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_q15.c CMSIS_5/CMSIS/DSP/Source/FilteringFunctions/arm_lms_q31.c CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_cos_f32.c CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_cos_q15.c CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_cos_q31.c CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_sin_f32.c CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_sin_q15.c CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_sin_q31.c CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_sqrt_q15.c CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_sqrt_q31.c CMSIS_5/CMSIS/DSP/Source/ControllerFunctions/arm_pid_init_f32.c CMSIS_5/CMSIS/DSP/Source/ControllerFunctions/arm_pid_init_q15.c CMSIS_5/CMSIS/DSP/Source/ControllerFunctions/arm_pid_init_q31.c CMSIS_5/CMSIS/DSP/Source/ControllerFunctions/arm_pid_reset_f32.c CMSIS_5/CMSIS/DSP/Source/ControllerFunctions/arm_pid_reset_q15.c CMSIS_5/CMSIS/DSP/Source/ControllerFunctions/arm_pid_reset_q31.c CMSIS_5/CMSIS/DSP/Source/ControllerFunctions/arm_sin_cos_f32.c CMSIS_5/CMSIS/DSP/Source/ControllerFunctions/arm_sin_cos_q31.c ./CMSIS_5/CMSIS/DSP/Source/CommonTables/arm_common_tables.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_f32.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_q15.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_q31.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_q7.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_add_f32.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_add_q15.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_add_q31.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_add_q7.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_dot_prod_f32.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_dot_prod_q15.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_dot_prod_q31.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_dot_prod_q7.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_mult_f32.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_mult_q15.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_mult_q31.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_mult_q7.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_negate_f32.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_negate_q15.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_negate_q31.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_negate_q7.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_offset_f32.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_offset_q15.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_offset_q31.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_offset_q7.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_scale_f32.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_scale_q15.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_scale_q31.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_scale_q7.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_shift_q15.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_shift_q31.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_shift_q7.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_sub_f32.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_sub_q15.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_sub_q31.c ./CMSIS_5/CMSIS/DSP/Source/BasicMathFunctions/arm_sub_q7.c cifar10/arm_nnexamples_cifar10.c
cifar10: ${C_SRC}
clang -std=c99 -DARM_MATH_CM3 -ICMSIS_5/CMSIS/DSP/Include -ICMSIS_5/CMSIS/Core/Include -ICMSIS_5/CMSIS/NN/Include -O3 -g3 -Wall -fmessage-length=0 -Wno-unused-function -Wno-unused-variable -o cifar10.out ${C_SRC}
cifar10.wasi: ${C_SRC}
${WCC} ${WCFLAGS} -std=c99 -DARM_MATH_CM3 -ICMSIS_5/CMSIS/DSP/Include -ICMSIS_5/CMSIS/Core/Include -ICMSIS_5/CMSIS/NN/Include -O3 -g3 -Wall -fmessage-length=0 -Wno-unused-function -Wno-unused-variable -o cifar10.wasi.out ${C_SRC} -Wl,--allow-undefined,-z,stack-size=524288,--no-threads,--stack-first,--no-entry,--export-all,--export=main --sysroot=${WSYSROOT}
cifar10.sf: ${C_SRC}
mkdir -p ${TMP_DIR}
${WASMCC} ${WASMCFLAGS} ${OPTFLAGS} -std=c99 -DARM_MATH_CM3 -ICMSIS_5/CMSIS/DSP/Include -ICMSIS_5/CMSIS/Core/Include -ICMSIS_5/CMSIS/NN/Include -O3 -g3 -Wall -fmessage-length=0 -Wno-unused-function -Wno-unused-variable ${C_SRC} ${DUMMY} -o ${TMP_DIR}/cifar10.sf.out.wasm
# ${SFCC} ${TMP_DIR}/cifar10.sf.out.wasm -o ${TMP_DIR}/cifar10.sf.out.bc
# ${CC} ${OPTFLAGS} -D${USE_MEM} ${TMP_DIR}/cifar10.sf.out.bc ${MEMC} ${RT_LIBC} ${RT_RT} -o ${TMP_DIR}/cifar10.sf.out
${SFCC} --inline-constant-globals --runtime-globals ${TMP_DIR}/cifar10.sf.out.wasm -o ${TMP_DIR}/cifar10.sf.out.bc
${CC} --shared -fPIC ${OPTFLAGS} -D${USE_MEM} -I${ART_INC} ${TMP_DIR}/cifar10.sf.out.bc ${AMEMC} ${WASMISA} -o ${TMP_DIR}/cifar10.awsm.so
clean:
rm -f cifar10.*
rm -rf tmp/
all: clean cifar10 cifar10.wasi cifar10.sf
.PHONY: cifar10 cifar10.wasi cifar10.sf clean all