📄 makefile
字号:
# Makefile for hdparm# DESTDIR is for non root installs (eg packages, NFS) only!DESTDIR = $(prefix)binprefix = /binexec_prefix = $(binprefix)sbindir = /sbinCC = $(cross)gccSTRIP = $(cross)stripCFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)LDFLAGS = -sINSTALL = installINSTALL_DATA = $(INSTALL) -m 644INSTALL_DIR = $(INSTALL) -m 755 -dINSTALL_PROGRAM = $(INSTALL)OBJS = hdparm.o identify.o sgio.oall: hdparmhdparm: hdparm.h $(OBJS) $(CC) $(LDFLAGS) -o hdparm $(OBJS) $(STRIP) hdparm install: all if [ ! -z $(DESTDIR) ]; then $(INSTALL_DIR) $(DESTDIR) ; fi if [ ! -z $(DESTDIR)$(sbindir) ]; then $(INSTALL_DIR) $(DESTDIR)$(sbindir) ; fi if [ -f $(DESTDIR)$(sbindir)/hdparm ]; then rm -f $(DESTDIR)$(sbindir)/hdparm ; fi $(INSTALL_PROGRAM) -D hdparm $(DESTDIR)$(sbindir)/hdparmclean: rm -f hdparm $(OBJS) core
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -