Merge remote-tracking branch 'origin/master' into chaindev
[profile/ivi/syslinux.git] / com32 / chain / Makefile
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.
11 ##
12 ## -----------------------------------------------------------------------
13
14
15 topdir = ../..
16 MAKEDIR = $(topdir)/mk
17 include $(MAKEDIR)/com32.mk
18
19 OBJS = chain.o partiter.o utility.o options.o mangle.o
20
21 all: chain.c32
22
23 chain.elf: $(OBJS) $(LIBS) $(C_LIBS)
24         $(LD) $(LDFLAGS) -o $@ $^
25
26 %.o: %.c
27         $(CC) $(MAKEDEPS) $(CFLAGS) $(CHAINEXTOPT) -c -o $@ $<
28
29 tidy dist:
30         rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
31
32 clean: tidy
33         rm -f *.lnx
34
35 spotless: clean
36         rm -f *.lss *.c32 *.com
37         rm -f *~ \#*
38
39 install:
40
41
42 -include .*.d