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