⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Linux下的系统信息获取
💻
字号:
# Comment/uncomment the following line to disable/enable debuggingDEBUG = n CC = gccINCLUDEDIR = /usr/includei/linuxifeq ($(DEBUG),y)  DEBFLAGS = -O -g -D_DEBUG_ # "-O" is needed to expand inlineselse  DEBFLAGS = -O2endifCFLAGS = -D__KERNEL__ -DMODULE -Wall -Wstrict-prototypes -fomit-frame-pointer \         -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 $(DEBFLAGS)CFLAGS += -I$(INCLUDEDIR)# Extract version number from headers.VER = `awk -F\" '/REL/ {print $$2}' $(INCLUDEDIR)/linux/version.h`TARGET = smbiosOBJS = $(TARGET).oSRC = bios.c main.c cooking.call: .depend $(TARGET).o$(TARGET).o: $(SRC:.c=.o)	$(LD) -r $^ -o $@install:	mkdir -p /lib/modules/$(VER)/misc	install -c -m 644 $(TARGET).o /lib/modules/$(VER)/miscclean:	rm -f *.o *~ core .dependdepend .depend dep:	$(CC) $(CFLAGS) -M *.c > $@ifeq (.depend,$(wildcard .depend))include .dependendif

⌨️ 快捷键说明

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