1## ----------------------------------------------------------------------- 2## 3## Copyright 2010-2011 Gene Cumm 4## 5## Portions from core/Makefile: 6## Copyright 1998-2009 H. Peter Anvin - All Rights Reserved 7## Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin 8## 9## This program is free software; you can redistribute it and/or modify 10## it under the terms of the GNU General Public License as published by 11## the Free Software Foundation, Inc., 53 Temple Place Ste 330, 12## Boston MA 02111-1307, USA; either version 2 of the License, or 13## (at your option) any later version; incorporated herein by reference. 14## 15## ----------------------------------------------------------------------- 16 17# 18# Makefile for the SYSLINUX geometry display for diagnostics 19# 20 21topdir = ../.. 22MAKEDIR = $(topdir)/mk 23include $(MAKEDIR)/embedded.mk 24coredir = $(topdir)/core 25 26BTARGET = geodsp1s.bin geodspms.bin \ 27 geodsp1s.img.xz geodspms.img.xz 28 29NASMOPT = -i $(coredir)/ -Ox -f bin 30NASMOPT += -w+orphan-labels 31CFLAGS = -g -O 32 33all: $(BTARGET) 34 35# Higher compression levels result in larger files 36%.img.xz: %.bin mk-lba-img 37 ./mk-lba-img < $< | $(XZ) -0f > $@ || ( rm -f $@ ; false ) 38 39%.img.gz: %.bin mk-lba-img 40 ./mk-lba-img < $< | $(GZIP) -9 > $@ || ( rm -f $@ ; false ) 41 42%.bin: %.asm $(coredir)/writehex.inc $(coredir)/macros.inc $(coredir)/diskboot.inc 43 $(NASM) $(NASMOPT) -o $@ -l $(@:.bin=.lst) $< 44 45mk-lba-img: mk-lba-img.c 46 $(CC) $(CFLAGS) -o $@ $< 47 48tidy dist: 49 rm -Rf *.lst *.img 50 rm -f mk-lba-img 51 52clean: tidy 53 54spotless: clean 55 rm -f $(BTARGET) 56

