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

📄 makefile

📁 这是Linux环境下的bootsyslinux-1.31版本
💻
字号:
## -----------------------------------------------------------------------##  $Id: Makefile,v 1.13 1998/02/06 00:19:20 hpa Exp $####   Copyright 1998 H. Peter Anvin - All Rights Reserved####   This program is free software; you can redistribute it and/or modify##   it under the terms of the GNU General Public License as published by##   the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,##   USA; either version 2 of the License, or (at your option) any later##   version; incorporated herein by reference.#### -----------------------------------------------------------------------## Main Makefile for SYSLINUX#NASM	= nasmCC	= gccCFLAGS	= -Wall -O2 -fomit-frame-pointerLDFLAGS	= -O2 -sBINDIR  = /usr/binVERSION = $(shell cat version).c.o:	$(CC) $(CFLAGS) -c $<SOURCES = ldlinux.asm syslinux.asm syslinux.cTARGETS = bootsect.bin ldlinux.sys syslinux.com syslinuxDOCS    = COPYING NEWS README TODO syslinux.docOTHER   = Makefile bin2c.pl now.pl versionall:	$(TARGETS)	ls -l $(TARGETS)# The DATE is set on the make command line when building binaries for# official release.  Otherwise, substitute a hex string that is pretty much# guaranteed to be unique to be unique from build to build.ifndef DATEDATE = $(shell perl now.pl)endifldlinux.bin: ldlinux.asm	$(NASM) -f bin -dVERSION="'$(VERSION)'" -dDATE_STR="'$(DATE)'" -l ldlinux.lst -o ldlinux.bin ldlinux.asmbootsect.bin: ldlinux.bin	dd if=ldlinux.bin of=bootsect.bin bs=512 count=1ldlinux.sys: ldlinux.bin	dd if=ldlinux.bin of=ldlinux.sys  bs=512 skip=1syslinux.com: syslinux.asm bootsect.bin ldlinux.sys	$(NASM) -f bin -l syslinux.lst -o syslinux.com syslinux.asmbootsect_bin.c: bootsect.bin bin2c.pl	perl bin2c.pl bootsect < bootsect.bin > bootsect_bin.cldlinux_bin.c: ldlinux.sys bin2c.pl	perl bin2c.pl ldlinux < ldlinux.sys > ldlinux_bin.csyslinux: syslinux.o bootsect_bin.o ldlinux_bin.o	$(CC) $(LDFLAGS) -o syslinux syslinux.o bootsect_bin.o ldlinux_bin.oinstall: all	install -c syslinux $(BINDIR)tidy:	rm -f ldlinux.bin *.lst *.o *_bin.cclean: tidy	rm -f $(TARGETS)dist: tidy	rm -f *~ \#*## This should only be used by the maintainer to generate official binaries# for release.  Please do not "make official" and distribute the binaries,# please.#.PHONY: official releaseofficial:	$(MAKE) clean	$(MAKE) all DATE=`date +'%Y-%m-%d'`	$(MAKE) distrelease:	-rm -rf release/syslinux-$(VERSION)	-rm -f release/syslinux-$(VERSION).*	mkdir -p release/syslinux-$(VERSION)	cp $(SOURCES) $(DOCS) $(OTHER) release/syslinux-$(VERSION)	make -C release/syslinux-$(VERSION) official	cd release ; tar cvvf - syslinux-$(VERSION) | \		gzip -9 > syslinux-$(VERSION).tar.gz	cd release/syslinux-$(VERSION) ; \		zip -9r ../syslinux-$(VERSION).zip *

⌨️ 快捷键说明

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