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
18VPATH = $(SRC)
19include $(MAKEDIR)/elf.mk
20
21LNXLIBS	   = $(objdir)/com32/libutil/libutil_lnx.a
22
23MODULES	  = mboot.c32
24TESTFILES =
25
26OBJS = mboot.o map.o mem.o initvesa.o apm.o solaris.o syslinux.o
27
28all: $(MODULES) $(TESTFILES)
29
30mboot.elf : $(OBJS) $(C_LIBS)
31	$(LD) $(LDFLAGS) -o $@ $^
32
33tidy dist:
34	rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
35
36clean: tidy
37	rm -f *.lnx
38
39spotless: clean
40	rm -f *.lss *.c32 *.com
41	rm -f *~ \#*
42
43install:
44
45-include .*.d
46