1 ## -----------------------------------------------------------------------
3 ## Copyright 2011 Intel Corporation - All Rights Reserved
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 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
)
30 $(AR
) cq
$@
$(LNXLIBOBJS
)
34 rm -f
*.o
*.lo
*.a
*.lst .
*.d
37 rm -f
*.lss
*.lnx
*.com
*.c32
43 mkdir
-m
755 -p
$(INSTALLROOT
)$(AUXDIR
)
44 install -m
644 ldlinux.c32
$(INSTALLROOT
)$(AUXDIR
)