version: Update to 4.08, update year to 2014
[syslinux/sherbszt.git] / modules / Makefile
blobf878c70d9d206b953dbf4bd04fc641ce1c07362d
1 ## -----------------------------------------------------------------------
2 ##
3 ## Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
4 ##
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 ## Boston MA 02111-1307, USA; either version 2 of the License, or
9 ## (at your option) any later version; incorporated herein by reference.
11 ## -----------------------------------------------------------------------
14 ## Non-COM32 simple Syslinux modules
17 topdir = ..
18 MAKEDIR = $(topdir)/mk
19 include $(MAKEDIR)/embedded.mk
21 INCLUDES = -I$(com32)/include
23 BINS = pxechain.com poweroff.com int18.com ver.com
25 all: $(BINS)
27 .PRECIOUS: %.o
29 .PRECIOUS: %.elf
30 %.elf: c32entry.o %.o $(LIB)
31 $(LD) -Ttext 0x101000 -e _start -o $@ $^
33 %.c32: %.elf
34 $(OBJCOPY) -O binary $< $@
36 %.com: %.asm
37 ( $(NASM) -M -DDEPEND -o $@ $< ; echo '' ) > .$@.d ; true
38 $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
40 $(LIB): $(LIBOBJS)
41 rm -f $@
42 $(AR) cq $@ $^
43 $(RANLIB) $@
45 %.lss: %.ppm.gz $(PPMTOLSS16)
46 $(GZIPPROG) -cd $< | \
47 $(PPMTOLSS16) \#000000=0 \#d0d0d0=7 \#f6f6f6=15 \
48 > $@
50 %.ppm.gz: %.png
51 $(PNGTOPNM) $< | gzip -9 > $@
53 tidy dist:
54 rm -f *.o *.a *.lst *.elf *.map .*.d
56 clean: tidy
58 spotless: clean
59 rm -f $(BINS)
61 -include .*.d