syslinux/com32/gfxboot/Makefile
<<
>>
Prefs
   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.
  11##
  12## -----------------------------------------------------------------------
  13
  14topdir = ../..
  15MAKEDIR = $(topdir)/mk
  16include $(MAKEDIR)/com32.mk
  17
  18MODULES   = gfxboot.c32
  19
  20all: $(MODULES)
  21
  22gfxboot.elf : gfxboot.o realmode_callback.o $(LIBS) $(C_LIBS)
  23        $(LD) $(LDFLAGS) -o $@ $^
  24
  25realmode_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 $@
  32
  33tidy dist:
  34        rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
  35
  36clean: tidy
  37        rm -f *.lnx
  38
  39spotless: clean
  40        rm -f *.lss *.c32 *.com
  41        rm -f *~ \#*
  42
  43install:
  44
  45-include .*.d
  46
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.