Releasing debian version 5.00+dfsg-1.
[syslinux-debian/hramrach.git] / com32 / gfxboot / Makefile
blobf2a73762712a24d9bea824a97db41f638b802329
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 MAKEDIR = $(topdir)/mk
16 include $(MAKEDIR)/elf.mk
18 MODULES = gfxboot.c32
20 all: $(MODULES)
22 gfxboot.c32 : gfxboot.o realmode_callback.o $(LIBS) $(C_LIBS)
23 $(LD) $(LDFLAGS) -o $@ $^
25 realmode_callback.o: realmode_callback.asm
26 $(NASM) -f bin -O99 -o $*.tmp -l $*.lst $<
27 $(OBJCOPY) -B i386 -I binary -O elf32-i386 \
28 --redefine-sym _binary_$*_tmp_start=$*_start \
29 --redefine-sym _binary_$*_tmp_end=$*_end \
30 --strip-symbol _binary_$*_tmp_size \
31 $*.tmp $@
33 tidy dist:
34 rm -f *.o *.lo *.a *.lst .*.d *.tmp
36 clean: tidy
37 rm -f *.lnx
39 spotless: clean
40 rm -f *.lss *.c32 *.com
41 rm -f *~ \#*
43 install:
45 -include .*.d