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