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

📄 makefile

📁 linux内核
💻
字号:
## $Id$## -----------------------------------------------------------------------##   ##   Copyright 1998-2004 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., 53 Temple Place Ste 330,##   Boston MA 02111-1307, USA; either version 2 of the License, or##   (at your option) any later version; incorporated herein by reference.#### -----------------------------------------------------------------------## Makefile for SYSLINUX Win32## This is separated out mostly so we can have a different set of Makefile# variables.#OSTYPE   = $(shell uname -msr)ifeq ($(findstring CYGWIN,$(OSTYPE)),CYGWIN)CC       = gccAR	 = arRANLIB   = ranlibCFLAGS   = -mno-cygwin -W -Wall -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64PIC	 =LDFLAGS  = -mno-cygwin -Os -selseifeq ($(findstring MINGW32,$(OSTYPE)),MINGW32)CC       = gccAR	 = arRANLIB   = ranlibelseCC       = mingw-gccAR	 = mingw-arRANLIB   = mingw-ranlibendifCFLAGS   = -W -Wall -Wno-sign-compare -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64PIC      =LDFLAGS  = -Os -sendifCFLAGS += -I. -I.. -I../libfatCC_IS_GOOD := $(shell $(CC) $(CFLAGS) $(LDFLAGS) -o hello.exe hello.c >/dev/null 2>&1 ; echo $$?).SUFFIXES: .c .o .i .s .SSRCS     = syslinux.c ../syslxmod.c ../bootsect_bin.c ../ldlinux_bin.c \	   ../mbr_bin.c $(wildcard ../libfat/*.c)OBJS     = $(patsubst %.c,%.o,$(notdir $(SRCS)))VPATH = .:..:../libfatTARGETS = syslinux.exeifeq ($(CC_IS_GOOD),0)all: $(TARGETS)elseall:	rm -f $(TARGETS)endiftidy:	-rm -f *.o *.i *.s *.a .*.d *_bin.cclean: tidyspotless: clean	-rm -f *~ $(TARGETS)installer:syslinux.exe: $(OBJS)	$(CC) $(LDFLAGS) -o $@ $^%.o: %.c	$(CC) -Wp,-MT,$@,-MMD,.$@.d $(CFLAGS) -c -o $@ $<%.i: %.c	$(CC) $(CFLAGS) -E -o $@ $<%.s: %.c	$(CC) $(CFLAGS) -S -o $@ $<-include .*.d

⌨️ 快捷键说明

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