1 ## -----------------------------------------------------------------------
3 ## Copyright 2001-2009 H. Peter Anvin - All Rights Reserved
4 ## Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
5 ## Copyright 2010 Shao Miller
6 ## Copyright 2010-2015 Michal Soltys
8 ## This program is free software; you can redistribute it and/or modify
9 ## it under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
11 ## Boston MA 02111-1307, USA; either version 2 of the License, or
12 ## (at your option) any later version; incorporated herein by reference.
14 ## -----------------------------------------------------------------------
17 include $(MAKEDIR
)/elf.mk
19 OBJS
= chain.o partiter.o utility.o options.o mangle.o
20 CFLAGS
+= -fno-strict-aliasing
24 chain.elf
: $(OBJS
) $(C_LIBS
)
25 $(LD
) $(LDFLAGS
) -o
$@
$^
28 $(CC
) $(MAKEDEPS
) $(CFLAGS
) $(CHAINEXTOPT
) -c
-o
$@
$<
31 rm -f
*.o
*.lo
*.a
*.lst
*.elf .
*.d
*.tmp
37 rm -f
*.lss
*.c32
*.com