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

📄 makefile

📁 linux下安装无线网卡启动的程式
💻
字号:
DRIVER_VERSION = $(shell sed -n 's/^\#define[ \t]\+DRIVER_VERSION[ \t]\+"\([^"]\+\)"/\1/p' driver/ndiswrapper.h)UTILS_VERSION = $(shell sed -n 's/^\#define[ \t]\+UTILS_VERSION[ \t]\+"\([^"]\+\)"/\1/p' driver/ndiswrapper.h)distdir=ndiswrapper-${DRIVER_VERSION}distarchive=${distdir}.tar.gzDISTFILES=AUTHORS ChangeLog INSTALL Makefile README ndiswrapper.spec \				   ndiswrapper.8 loadndisdriver.8DIST_SUBDIRS=utils driverDESTDIR = mandir = $(DESTDIR)$(shell [ -d /usr/man/man8 ] && echo /usr/man || echo /usr/share/man )KVERS ?= $(shell uname -r).PHONY: allall: 	+make -C driver	+make -C utils.PHONY: installinstall:	+make -C driver install	+make -C utils install	mkdir -p -m 0755 $(mandir)/man8	install -m 644 ndiswrapper.8 $(mandir)/man8	install -m 644 loadndisdriver.8 $(mandir)/man8.PHONY: clean distcleanclean:	+make -C driver clean	+make -C utils clean	rm -f *~	rm -fr ${distdir} ${distdir}.tar.gz patch-stampdistclean: clean	+make -C driver distclean	+make -C utils distclean	rm -f .\#*uninstall:	@echo "NOTE: Not all installed files are removed, as different" \		"distributions install ndiswrapper files at different places."	@echo "Run uninstall as many times as necessary until no" \		"\"removing\" messages appear below."	@if [ "x$(shell which loadndisdriver)" != "x" ]; then \		echo "removing $(shell which loadndisdriver)"; \		/bin/rm -f $(shell which loadndisdriver); \	fi	@if [ "x$(shell which ndiswrapper)" != "x" ]; then \		echo "removing $(shell which ndiswrapper)"; \		/bin/rm -f $(shell which ndiswrapper); \	fi	@if [ "x$(shell which ndiswrapper-buginfo)" != "x" ]; then \		echo "removing $(shell which ndiswrapper-buginfo)"; \		/bin/rm -f $(shell which ndiswrapper-buginfo); \	fi	@for module in $(shell find /lib/modules/$(KVERS) -type f | \			grep 'ndiswrapper.\(\(ko\)\|\(o\)\)'$); do \		echo "removing $$module"; \		/bin/rm -f $$module; \	donedist:	@rm -rf ${distdir}	mkdir -p ${distdir}	@for file in $(DISTFILES); do \	  cp  $$file $(distdir)/$$file; \	done	for subdir in $(DIST_SUBDIRS); do \	  if test "$$subdir" = .; then :; else \	    test -d $(distdir)/$$subdir \	    || mkdir $(distdir)/$$subdir \	    || exit 1; \	  fi; \	done	+make -C driver distdir=../${distdir}/driver dist	+make -C utils distdir=../${distdir}/utils dist	# Update version in dist rpm spec file - don't crash if it fails	-sed -i "s/\%define\s\+ndiswrapper_version\s\+[^\}]\+\}/%define ndiswrapper_version $(DRIVER_VERSION)\}/" $(distdir)/ndiswrapper.spec	tar cfz ${distarchive} ${distdir}rpm: dist ndiswrapper.spec	rpmbuild -ta $(distarchive) --define="ndiswrapper_version $(DRIVER_VERSION)"

⌨️ 快捷键说明

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