# Copyright (C) OCERA Consortium. # Author Ismael Ripoll ######################## Variables to customise. # Name of the component COMPONENT=exec_timers # Directory where the kernels are located KERNELS= RTLINUX=$(KERNELS) # XSTLSTYLE=../../../component.xslt install: kernelset $(RTLINUX) install_examples install_doc cp -fr include/* $(RTLINUX)/include cp -fr schedulers/* $(RTLINUX)/schedulers @if test -f $(PWD)/patches/rtlinux-3.1_exec_timers-0.1.patch ; then \ cd $(RTLINUX); patch -p1 < $(PWD)/patches/rtlinux-3.1_exec_timers-0.1.patch; \ fi install_examples: mkdir -p $(RTLINUX)/examples/$(COMPONENT) cp -fr examples/* $(RTLINUX)/examples/$(COMPONENT) install_doc: mkdir -p $(RTLINUX)/doc/$(COMPONENT) cp -fr $(COMPONENT)-info.pdf $(RTLINUX)/doc/$(COMPONENT) cp -fr doc/* $(RTLINUX)/doc/ doc: pdf pdf: gv $(COMPONENT)-info.pdf & kernelset: @if [ ! -d $(RTLINUX) ] ; then \ echo "";\ echo "KERNELS Makefile variable not set." ; \ echo "It must point to the directory where RTLinux code is located.";\ echo "Please, edit the Makefile and set KERNELS variable.";\ echo "";\ fi clean: (cd src; make clean) rm -f *~ *.bak