LIB = -L/home/exp/lib/ all: freqresp_module.o freqresp_app hinf_module.o hinf_app #simu_shift_binary.dat # fft demo_module.o demo_app sine_module.o spkcont_app spkcont_module.o include rtl.mk fft: fft.c ${CC} fft.c -o fft ${LFLAGS} ${LIB} -lm -lrealfft -lfft sine_module.o: sine_module.c adc.o sine.h ${CC} ${INCLUDE} ${CFLAGS} -c sine_module.c -o sine_module_tmp.o ld -r -static sine_module_tmp.o -o sine_module.o adc.o -L/usr/lib/ -lm -lc freqresp_app: freqresp_app.c freqresp.h ${CC} ${INCLUDE} ${USER_CFLAGS} ${LIB} -O2 -Wall freqresp_app.c -o freqresp_app -lm -lrealfft -lfft freqresp_module.o: freqresp_module.c adc.o freqresp.h ${CC} ${INCLUDE} ${CFLAGS} -c freqresp_module.c -o freqresp_module_tmp.o ld -r -static freqresp_module_tmp.o -o freqresp_module.o adc.o -L/usr/lib/ -lm -lc spkcont_app: spkcont_app.c spkcont.h ${CC} ${INCLUDE} ${USER_CFLAGS} ${LIB} -O2 -Wall spkcont_app.c -o spkcont_app -lm -lrealfft -lfft spkcont_module.o: spkcont_module.c adc.o spkcont.h ${CC} ${INCLUDE} ${CFLAGS} -c spkcont_module.c -o spkcont_module_tmp.o ld -r -static spkcont_module_tmp.o -o spkcont_module.o adc.o -L/usr/lib/ -lm -lc hinf_app: hinf_app.c hinf.h ${CC} ${INCLUDE} ${USER_CFLAGS} ${LIB} -O2 -Wall hinf_app.c -o hinf_app -lm -lrealfft -lfft hinf_module.o: hinf_module.c adc.o hinf.h ${CC} ${INCLUDE} ${CFLAGS} -c hinf_module.c -o hinf_module_tmp.o ld -r -static hinf_module_tmp.o -o hinf_module.o adc.o -L/usr/lib/ -lm -lc demo_app: demo_app.c demo.h ${CC} ${INCLUDE} ${USER_CFLAGS} ${LIB} -O2 -Wall demo_app.c -o demo_app -lm -lrealfft -lfft demo_module.o: demo_module.c adc.o demo.h ${CC} ${INCLUDE} ${CFLAGS} -c demo_module.c -o demo_module_tmp.o ld -r -static demo_module_tmp.o -o demo_module.o adc.o -L/usr/lib/ -lm -lc adc.o: adc.c adc.h ${CC} ${CFLAGS} -c $< include $(RTL_DIR)/Rules.make rtl: cd /usr/src/rtlinux/rtlinux-3.1; ./scripts/insrtl insmod /usr/src/rtlinux/rtlinux-3.1/drivers/mbuff/mbuff.o ax_0.c: gen_binary_code data/controller0_mode_r.dat ./gen_binary_code ax_1.c: gen_binary_code data/controller0_mode_r.dat ./gen_binary_code cx_0.c: gen_binary_code data/controller0_mode_r.dat ./gen_binary_code cx_1.c: gen_binary_code data/controller0_mode_r.dat ./gen_binary_code dy.c: gen_binary_code data/controller0_mode_r.dat ./gen_binary_code def.h: gen_binary_code data/controller0_mode_r.dat ./gen_binary_code gen_binary_code: gen_binary_code.c cc gen_binary_code.c -o gen_binary_code simu_shift_binary: simu_shift_binary.c ax_0.c ax_1.c cx_0.c cx_1.c dy.c def.h cc simu_shift_binary.c -o simu_shift_binary simu_shift_binary.dat: simu_shift_binary data/result.dat ./simu_shift_binary codes: cc gen_binary_code.c -o gen_binary_code ./gen_binary_code simu: cc simu_shift_binary.c -o simu_shift_binary ./simu_shift_binary