7e6c2e961b6c8a3b8f468773f436a659bc514c5c
[external/syslinux.git] / com32 / mboot / Makefile
1 ## -----------------------------------------------------------------------
2 ##
3 ##   Copyright 2001-2009 H. Peter Anvin - All Rights Reserved
4 ##   Copyright 2009 Intel Corporation; author: H. Peter Anvin
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., 51 Franklin St, Fifth Floor,
9 ##   Boston MA 02110-1301, USA; either version 2 of the License, or
10 ##   (at your option) any later version; incorporated herein by reference.
11 ##
12 ## -----------------------------------------------------------------------
13
14 ##
15 ## Multiboot module
16 ##
17
18 topdir = ../..
19 include ../MCONFIG
20
21 LIBS       = ../libutil/libutil_com.a ../lib/libcom32.a $(LIBGCC)
22 LNXLIBS    = ../libutil/libutil_lnx.a
23
24 MODULES   = mboot.c32
25 TESTFILES =
26
27 OBJS = mboot.o map.o mem.o initvesa.o apm.o solaris.o syslinux.o
28
29 all: $(MODULES) $(TESTFILES)
30
31 mboot.elf : $(OBJS) $(LIBS) $(C_LIBS)
32         $(LD) $(LDFLAGS) -o $@ $^
33
34 tidy dist:
35         rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
36
37 clean: tidy
38         rm -f *.lnx
39
40 spotless: clean
41         rm -f *.lss *.c32 *.com
42         rm -f *~ \#*
43
44 install:
45
46 -include .*.d