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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
ALL = monitor periodic_test.o oneshot_test.o bulk_module.o bulk_app
ifdef CONFIG_PSC
ALL += psc_periodic
endif
all : $(ALL)
ifneq ($(wildcard ../rtl.mk),)
include ../rtl.mk
endif
clean: dummy
rm -f *.o monitor gnuplot.out modules.dep bulk_app
psc_periodic: psc_periodic.c
gcc -g -o psc_periodic psc_periodic.c -I../include/ -lrtlinux -L../psc
periodic_test: monitor periodic_test.o
depmod *.o ../modules/*.o > modules.dep
-rmmod rtl_sched
insmod periodic_test.o
./monitor
rmmod periodic_test
periodic_view: gnuplot.out
gnuplot < periodic.plot
monitor: monitor.c
$(CC) ${INCLUDE} ${USER_CFLAGS} -o monitor monitor.c
periodic_test.o: periodic_test.c
$(CC) ${INCLUDE} ${CFLAGS} -c periodic_test.c
oneshot_test: monitor oneshot_test.o
depmod *.o ../modules/*.o > modules.dep
-rmmod rtl_sched
insmod oneshot_test.o
./monitor
rmmod oneshot_test
oneshot_view: gnuplot.out
gnuplot < oneshot.plot
oneshot_test.o: oneshot_test.c
$(CC) ${INCLUDE} ${CFLAGS} -c oneshot_test.c
bulk_test: bulk_module.o bulk_app
depmod *.o ../modules/*.o > modules.dep
insmod bulk_module.o
./bulk_app
rmmod bulk_module
bulk_module.o: bulk_module.c
$(CC) ${INCLUDE} ${CFLAGS} -c bulk_module.c
bulk_app: bulk_app.c
$(CC) ${INCLUDE} ${USER_CFLAGS} -o bulk_app bulk_app.c
.PHONY: dummy
include $(RTL_DIR)/Rules.make
|