com32/chain: utility's lba2chs update
[syslinux.git] / com32 / chain / Makefile
bloba5602d9d44718d6a959cbc790e9e17328971c29a
1 ## -----------------------------------------------------------------------
2 ##
3 ## Copyright 2001-2010 H. Peter Anvin - All Rights Reserved
4 ## Copyright 2010 Michal Soltys
5 ##
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 ## -----------------------------------------------------------------------
15 topdir = ../..
16 include ../MCONFIG
18 OBJS = chain.o partiter.o utility.o options.o mangle.o
20 all: chain.c32
22 chain.elf: $(OBJS) $(LIBS) $(C_LIBS)
23 $(LD) $(LDFLAGS) -o $@ $^
25 %.o: %.c
26 $(CC) $(MAKEDEPS) $(CFLAGS) $(CHAINEXTOPT) -c -o $@ $<
28 tidy dist:
29 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
31 clean: tidy
32 rm -f *.lnx
34 spotless: clean
35 rm -f *.lss *.c32 *.com
36 rm -f *~ \#*
38 install:
41 -include .*.d