execute(): move chainbooting code to its own file
[syslinux/sherbszt.git] / com32 / elflink / ldlinux / Makefile
blobdc48ca97fd5e4b4ab501c867299b4453001ec7a6
1 ## -----------------------------------------------------------------------
2 ##
3 ## Copyright 2011 Intel Corporation - 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 ## -----------------------------------------------------------------------
13 topdir = ../../..
14 MAKEDIR = $(topdir)/mk
15 include $(MAKEDIR)/elf.mk
17 CFLAGS += -I$(topdir)/core/elflink -I$(topdir)/core/include
18 LIBS = --whole-archive $(com32)/lib/libcom32min.a
20 all: ldlinux.c32 ldlinux_lnx.a
22 ldlinux.c32 : ldlinux.o cli.o readconfig.o refstr.o colors.o getadv.o \
23 adv.o execute.o chainboot.o kernel.o get_key.o \
24 advwrite.o setadv.o eprintf.o loadhigh.o
25 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
27 LNXLIBOBJS = get_key.lo
28 ldlinux_lnx.a: $(LNXLIBOBJS)
29 rm -f $@
30 $(AR) cq $@ $(LNXLIBOBJS)
31 $(RANLIB) $@
33 tidy dist:
34 rm -f *.o *.lo *.a *.lst .*.d
36 clean: tidy
37 rm -f *.lss *.lnx *.com *.c32
39 spotless: clean
40 rm -f *~ \#*
42 install: all
43 mkdir -m 755 -p $(INSTALLROOT)$(AUXDIR)
44 install -m 644 ldlinux.c32 $(INSTALLROOT)$(AUXDIR)
47 -include .*.d