chain.c: Split chain into smaller files
[syslinux/sherbszt.git] / com32 / chain / Makefile
blob054c7681332a1229d63363cae1a874c584fd1bd2
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
19 GCCEXTRA = -Wextra -Wconversion -pedantic -Wno-error -DDEBUG
21 all: chain.c32
23 chain.elf: $(OBJS) $(LIBS) $(C_LIBS)
24 $(LD) $(LDFLAGS) -o $@ $^
26 %.o: %.c
27 $(CC) $(MAKEDEPS) $(CFLAGS) $(GCCEXTRA) -c -o $@ $<
29 tidy dist:
30 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
32 clean: tidy
33 rm -f *.lnx
35 spotless: clean
36 rm -f *.lss *.c32 *.com
37 rm -f *~ \#*
39 install:
42 -include .*.d