makefile

来自「tools for dgstation st cuberevo box」· 代码 · 共 38 行

TXT
38
字号
# 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 + =
减小字号Ctrl + -
显示快捷键?