📄 makefile
字号:
#==============================================================================# (C) Copyright IBM Corp. 2004, 2005 All Rights Reserved.## Makefile## Tool to make use of a SCSI-feature called Asymmetric Logical Unit Access.# It determines the ALUA state of a device and prints a priority value to# stdout.## Author(s): Jan Kunigk# S. Bader <shbader@de.ibm.com>## This file is released under the GPL.#==============================================================================EXEC = mpath_prio_aluaBUILD = glibcDEBUG = 0DEBUG_DUMPHEX = 0OBJS = main.o rtpg.oINSTALL = install -DTOPDIR = ../..ifneq ($(shell ls $(TOPDIR)/Makefile.inc 2>/dev/null),)include $(TOPDIR)/Makefile.incendifCFLAGS += -DDEBUG=$(DEBUG)all: $(BUILD)glibc: $(OBJS) $(CC) -o $(EXEC) $(OBJS) $(LDFLAGS)klibc: $(OBJS) $(CC) -static -o $(EXEC) $(OBJS)install: $(BUILD) $(EXEC).8.gz $(INSTALL) -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC) $(INSTALL) -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)/$(EXEC).8.gzuninstall: rm $(DESTDIR)$(bindir)/$(EXEC) rm $(DESTDIR)$(mandir)/$(EXEC).8.gzclean: rm -f *.o *.gz $(EXEC)$(EXEC).8.gz: $(EXEC).8 $(GZIP) $< >$@main.o: main.c rtpg.h spc3.hrtpg.o: rtpg.c rtpg.h spc3.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -