1 ## -----------------------------------------------------------------------
3 ## Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
4 ## Copyright 2009 Intel Corporation; author: H. Peter Anvin
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.
12 ## -----------------------------------------------------------------------
15 ## Hardware Detection Tool
21 LIBS = ../cmenu/libmenu/libmenu.a ../libutil/libutil_com.a \
22 ../lib/libcom32.a $(LIBGCC)
23 CFLAGS += -I$(com32)/cmenu/libmenu
28 OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
30 all: $(MODULES) $(TESTFILES)
32 hdt.elf : $(OBJS) $(LIBS) $(C_LIBS)
33 $(LD) $(LDFLAGS) -o $@ $^
36 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
42 rm -f *.lss *.c32 *.com