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

📄 makefile

📁 Util-linux 软件包包含许多工具。其中比较重要的是加载、卸载、格式化、分区和管理硬盘驱动器
💻
字号:
include ../make_includeinclude ../MCONFIGDEFINES = -DHAVE_NFS $(BLKID_DEFINE)RPCSVCDIR = rpcsvcRPC_CFLAGS = -Wno-unused RPCGEN = rpcgenCOMPILE = $(CC) -c $(CFLAGS) $(DEFINES)LINK = $(CC) $(LDFLAGS)SUID_PROGS = mount umountNOSUID_PROGS = swapon losetupMAN5 = fstab.5 nfs.5MAN8 = mount.8 swapoff.8 swapon.8 umount.8 losetup.8ifeq "$(HAVE_PIVOT_ROOT)" "yes"NOSUID_PROGS := $(NOSUID_PROGS) pivot_rootMAN8 := $(MAN8) pivot_root.8endififeq "$(HAVE_BLKID)" "yes"BLKID_DEFINE = -DHAVE_BLKIDBLKID_LIB = -lblkid -luuidendifPROGS = $(SUID_PROGS) $(NOSUID_PROGS)MAYBE = pivot_root swapoffLO_OBJS = lomount.o $(LIB)/xstrncpy.oNFS_OBJS = nfsmount.o nfsmount_xdr.o nfsmount_clnt.oGEN_FILES = nfsmount.h nfsmount_xdr.c nfsmount_clnt.call: $(PROGS)install: $(PROGS)	$(INSTALLDIR) $(BINDIR) $(SBINDIR)	$(INSTALLSUID) $(SUID_PROGS) $(BINDIR)	$(INSTALLBIN) $(NOSUID_PROGS) $(SBINDIR)	(cd $(SBINDIR); ln -sf swapon swapoff)	$(INSTALLDIR) $(MAN5DIR) $(MAN8DIR)	$(INSTALLMAN) $(MAN5) $(MAN5DIR)	$(INSTALLMAN) $(MAN8) $(MAN8DIR)%.o: %.c	$(COMPILE) $<mount: mount.o fstab.o sundries.o realpath.o mntent.o version.o \       get_label_uuid.o mount_by_label.o mount_blkid.o mount_guess_fstype.o \       getusername.o $(LIB)/setproctitle.o $(LIB)/env.o $(NFS_OBJS) $(LO_OBJS)	$(LINK) $^ -o $@ $(BLKID_LIB)umount: umount.o fstab.o sundries.o realpath.o mntent.o getusername.o \	get_label_uuid.o mount_by_label.o mount_blkid.o version.o \	$(LIB)/env.o $(LO_OBJS)	$(LINK) $^ -o $@ $(BLKID_LIB)swapon:	swapon.o version.o	$(LINK) $^ -o $@main_losetup.o: lomount.c	$(COMPILE) -DMAIN lomount.c -o $@losetup: main_losetup.o $(LIB)/xstrncpy.o	$(LINK) $^ -o $@mount.o umount.o nfsmount.o losetup.o fstab.o realpath.o sundries.o: sundries.hmount.o umount.o fstab.o sundries.o: fstab.hmount.o fstab.o mntent.o: mntent.hmount.o mount_guess_fstype.o: mount_guess_fstype.hmount.o: $(LIB)/setproctitle.hmount.o umount.o getusername.o: getusername.hmount.o umount.o losetup.o lomount.o: lomount.h loop.h my_dev_t.hswapon.o: swap_constants.h swapargs.hsundries.o nfsmount.o nfsmount_xdr.o nfsmount_clnt.o: nfsmount.humount.o: mount_constants.hmount.o mount_blkid.o: mount_blkid.hmount.o mount_by_label.o mount_guess_fstype.o: linux_fs.hsundries.o realpath.o: realpath.hnfsmount_clnt.o: nfsmount_clnt.c	$(COMPILE) $(RPC_CFLAGS) nfsmount_clnt.cnfsmount_xdr.o: nfsmount_xdr.c	$(COMPILE) $(RPC_CFLAGS) nfsmount_xdr.cifeq "$(HAVE_GOOD_RPC)" "yes"nfsmount.h: nfsmount.x	rm -f nfsmount.h	$(RPCGEN) -h -o nfsmount.h nfsmount.xnfsmount_xdr.c: nfsmount.x	rm -f nfsmount_xdr.c	$(RPCGEN) -c -o nfsmount_xdr.c nfsmount.xnfsmount_clnt.c: nfsmount.x	rm -f nfsmount_clnt.c	$(RPCGEN) -l -o nfsmount_clnt.c nfsmount.xelsenfsmount.h:	cp $(RPCSVCDIR)/nfsmount.h .nfsmount_xdr.c:	cp $(RPCSVCDIR)/nfsmount_xdr.c .nfsmount_clnt.c:	cp $(RPCSVCDIR)/nfsmount_clnt.c .endifnfsmount.o: nfs_mount4.hswapargs.h:	sh swap.configureclean:	rm -f a.out core *~ *.o swapargs.h $(PROGS) $(MAYBE)	rm -f nfs_mountversion.hclobber distclean realclean: clean	rm -f $(GEN_FILES)

⌨️ 快捷键说明

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