aboutsummaryrefslogtreecommitdiffstats
path: root/modules/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-08-27 16:23:24 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-08-27 16:23:24 -0700
commitc1b3d04474c24e4908868e6c7bedb5824d15b066 (patch)
treecf82cbb2589003c1a44bc5bc6e8cdf94eb49547a /modules/Makefile
parent2a6fef03f88e7aa56009f608dccd17e6f24dde97 (diff)
downloadsyslinux-elf-c1b3d04474c24e4908868e6c7bedb5824d15b066.tar.gz
syslinux-elf-c1b3d04474c24e4908868e6c7bedb5824d15b066.tar.xz
syslinux-elf-c1b3d04474c24e4908868e6c7bedb5824d15b066.zip
Add pxechain.com; new modules direction; reorganize installation
Add the pxechain module from Jeffery Hutzelman at CMU. Create new modules directory for non-com32 modules. Centralize installation, since we have three types of install, and only one of them was distributed. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'modules/Makefile')
-rw-r--r--modules/Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/modules/Makefile b/modules/Makefile
new file mode 100644
index 00000000..5caf5e6e
--- /dev/null
+++ b/modules/Makefile
@@ -0,0 +1,63 @@
+## -----------------------------------------------------------------------
+##
+## Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
+## Boston MA 02111-1307, USA; either version 2 of the License, or
+## (at your option) any later version; incorporated herein by reference.
+##
+## -----------------------------------------------------------------------
+
+##
+## Non-COM32 simple Syslinux modules
+##
+
+topdir = ..
+include $(topdir)/MCONFIG.embedded
+
+INCLUDES = -I$(com32)/include
+
+BINS = pxechain.com
+
+all: $(BINS)
+
+.PRECIOUS: %.o
+%.o: %.S
+ $(CC) $(SFLAGS) -c -o $@ $<
+
+.PRECIOUS: %.o
+%.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+.PRECIOUS: %.elf
+%.elf: c32entry.o %.o $(LIB)
+ $(LD) -Ttext 0x101000 -e _start -o $@ $^
+
+%.c32: %.elf
+ $(OBJCOPY) -O binary $< $@
+
+%.com: %.asm
+ $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
+
+$(LIB): $(LIBOBJS)
+ rm -f $@
+ $(AR) cq $@ $^
+ $(RANLIB) $@
+
+%.lss: %.ppm.gz $(PPMTOLSS16)
+ $(GZIPPROG) -cd $< | \
+ $(PPMTOLSS16) \#000000=0 \#d0d0d0=7 \#f6f6f6=15 \
+ > $@
+
+%.ppm.gz: %.png
+ $(PNGTOPNM) $< | gzip -9 > $@
+
+tidy dist:
+ rm -f *.o *.a *.lst *.elf
+
+clean: tidy
+ rm -f $(BINS)
+
+spotless: clean