Releasing debian version 4.04+dfsg-9.
[syslinux-debian/hramrach.git] / com32 / gfxboot / Makefile
blob73133e1b7c428ffa850cbe63f4c5d792a917f026
1 ## -----------------------------------------------------------------------
2 ##
3 ## Copyright 2001-2009 H. Peter Anvin - All Rights Reserved
4 ## Copyright 2009 Intel Corporation; author: H. Peter Anvin
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9 ## Boston MA 02111-1307, USA; either version 2 of the License, or
10 ## (at your option) any later version; incorporated herein by reference.
12 ## -----------------------------------------------------------------------
14 topdir = ../..
15 include ../MCONFIG
17 MODULES = gfxboot.c32
19 all: $(MODULES)
21 gfxboot.elf : gfxboot.o realmode_callback.o $(LIBS) $(C_LIBS)
22 $(LD) $(LDFLAGS) -o $@ $^
24 realmode_callback.o: realmode_callback.asm
25 $(NASM) -f bin -O99 -o $*.tmp -l $*.lst $<
26 $(OBJCOPY) -B i386 -I binary -O elf32-i386 \
27 --redefine-sym _binary_$*_tmp_start=$*_start \
28 --redefine-sym _binary_$*_tmp_end=$*_end \
29 --strip-symbol _binary_$*_tmp_size \
30 $*.tmp $@
32 tidy dist:
33 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
35 clean: tidy
36 rm -f *.lnx
38 spotless: clean
39 rm -f *.lss *.c32 *.com
40 rm -f *~ \#*
42 install:
44 -include .*.d