makefile

来自「fsmlabs的real time linux的内核」· 代码 · 共 34 行

TXT
34
字号
TARGET = test_ipc.oSRC = $(TARGET:.o=.c)all:		$(TARGET)# you might have to change thisifneq ($(wildcard ../../rtl.mk),)include ../../rtl.mkendif# the path to the rt-linux kernel $(TARGET):	$(SRC)	$(CC)  ${INCLUDE} ${CFLAGS} -D__KERNEL__ -D__RT__  -c $(SRC)ins:		$(TARGET)	insmod $(TARGET)rm:	rmmod $(TARGET)rtl:	insmod ${RTL_DIR}/modules/rtl_sched	insmod ${RTL_DIR}/modules/rtl_fifort_ipc:	insmod ../rt_ipc.oclean:	rm -f $(TARGET)include $(RTL_DIR)/Rules.make

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?