makefile
来自「xenomai 很好的linux实时补丁」· 代码 · 共 47 行
TXT
47 行
# Using a single source image, this demo illustrates the real-time# guarantees provided by Xenomai's POSIX skin in user-space# (accuracy_rt) compared to those available from the native# NPTL/LinuxThreads supports (accuracy). You need the xeno_hal.ko +# xno_nucleus.ko + xeno_posix.ko modules to be loaded to run the# accuracy_rt test.all:bin_PROGRAMS= accuracy accuracy_rt satch_rtlib_LIBRARIES=CPPFLAGS= -D_GNU_SOURCE -D_REENTRANTCFLAGS= -Wstrict-prototypes -g -O2 -WallLDFLAGS= -lpthread -lrtaccuracy_rt.o: CPPFLAGS=-DSPERIOD=100accuracy.o: CPPFLAGS+=-DSPERIOD=2000satch_rt.o: CPPFLAGS=-DCONSUMER# To use this makefile with xeno-config not located in PATH, type :# make XENO_CONFIG=/path/to/xeno-configXENO_CONFIG=xeno-configprefix := $(shell $(XENO_CONFIG) --prefix)ifeq ($(prefix),)$(error Please add <xenomai-install-path>/bin to your PATH variable or type: \make XENO_CONFIG=<xenomai-install-path>/bin/xeno-config)endifCC:= $(shell $(XENO_CONFIG) --cc)CFLAGS_RT:= $(shell $(XENO_CONFIG) --posix-cflags) -gLDFLAGS_RT:= $(shell $(XENO_CONFIG) --posix-ldflags)all: $(bin_PROGRAMS) $(lib_LIBRARIES)%_rt.o: %.c $(CC) $(CPPFLAGS) $(CFLAGS_RT) $< -c -o $@%_rt: LDFLAGS=$(LDFLAGS_RT)clean: $(RM) $(bin_PROGRAMS) $(lib_LIBRARIES) *.o
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?