# SPDX-License-Identifier: GPL-2.0
# this make file is simply to help autogenerate these files:
# ni_route_values.h
# ni_device_routes.h
# in order to dothis, we are also generating a python representation (using
# ctypesgen) of ../../../../../include/uapi/linux/comedi.h.
# This allows us to sort NI signal/terminal names numerically to use a binary
# search through the device_routes tables to find valid routes.
ALL:
@echo Typical targets:
@echo "\`make csv-files\`"
@echo " Creates new csv-files using content of c-files of existing"
@echo " ni_routing/* content. New csv files are placed in csv"
@echo " sub-directory."
@echo "\`make c-files\`"
@echo " Creates new c-files using content of csv sub-directory. These"
@echo " new c-files can be compared to the active content in the"
@echo " ni_routing directory."
@echo "\`make csv-blank\`"
@echo " Create a new blank csv file. This is useful for establishing a"
@echo " new data table for either a device family \(less likely\) or a"
@echo " specific board of an existing device family \(more likely\)."
@echo "\`make clean-partial\`"
@echo " Remove all generated files/directories EXCEPT for csv/c files."
@echo "\`make clean\`"
@echo " Remove all generated files/directories."
@echo "\`make everything\`"
@echo " Build all csv-files, then all new c-files."
# Create a local 'linux/comedi.h'for use when compiling 'convert_c_to_py.c'
# with the '-I.' option. (Cannot specify '-I../../../../../include/uapi'
# because that interferes with inclusion of other system headers.)
linux/comedi.h: $(INC_UAPI)/linux/comedi.h
mkdir -p linux
ln -snf ../$< $@
# Note: One could also use ctypeslib in order to generate these files. The # caveat is that ctypeslib does not do a great job at handling macro functions. # The make rules are as follows: # comedi.h.xml : $(INC_UAPI)/linux/comedi.h # # note that we have to use PWD here to avoid h2xml finding a system # # installed version of the comedilib/comedi.h file # h2xml ${PWD}/$(INC_UAPI)/linux/comedi.h -c D__user="" -o comedi.h.xml # # comedi_h.py : comedi.h.xml # xml2py ./comedi.h.xml -o comedi_h.py # clean : # rm -f comedi.h.xml comedi_h.py comedi_h.pyc
Messung V0.5 in Prozent
[Dauer der Verarbeitung: 0.19 Sekunden, vorverarbeitet 2026-04-26]