NEWS: Document new E820 code.
[syslinux.git] / modules / Makefile
blob1ffe9ef38880f4d0b7eca3eb7410a37ce39b06f3
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 include $(topdir)/MCONFIG.embedded
20 INCLUDES = -I$(com32)/include
22 BINS = pxechain.com
24 all: $(BINS)
26 .PRECIOUS: %.o
27 %.o: %.S
28 $(CC) $(SFLAGS) -c -o $@ $<
30 .PRECIOUS: %.o
31 %.o: %.c
32 $(CC) $(CFLAGS) -c -o $@ $<
34 .PRECIOUS: %.elf
35 %.elf: c32entry.o %.o $(LIB)
36 $(LD) -Ttext 0x101000 -e _start -o $@ $^
38 %.c32: %.elf
39 $(OBJCOPY) -O binary $< $@
41 %.com: %.asm
42 $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
44 $(LIB): $(LIBOBJS)
45 rm -f $@
46 $(AR) cq $@ $^
47 $(RANLIB) $@
49 %.lss: %.ppm.gz $(PPMTOLSS16)
50 $(GZIPPROG) -cd $< | \
51 $(PPMTOLSS16) \#000000=0 \#d0d0d0=7 \#f6f6f6=15 \
52 > $@
54 %.ppm.gz: %.png
55 $(PNGTOPNM) $< | gzip -9 > $@
57 tidy dist:
58 rm -f *.o *.a *.lst *.elf
60 clean: tidy
62 spotless: clean
63 rm -f $(BINS)