hdt: Fixing latency indentation
[profile/ivi/syslinux.git] / com32 / hdt / Makefile
1 ## -----------------------------------------------------------------------
2 ##
3 ##   Copyright 2001-2008 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 ## Hardware Detection Tool
16 ##
17
18 topdir = ../..
19 include ../MCONFIG
20
21 LIBS       = ../cmenu/libmenu/libmenu.a ../libutil/libutil_com.a \
22              ../lib/libcom32.a $(LIBGCC)
23 CFLAGS    += -I$(com32)/cmenu/libmenu
24
25 MODULES   = hdt.c32
26 TESTFILES =
27
28 OBJS      = $(patsubst %.c,%.o,$(wildcard *.c))
29
30 all: $(MODULES) $(TESTFILES)
31
32 hdt.elf : $(OBJS) $(LIBS) $(C_LIBS)
33         $(LD) $(LDFLAGS) -o $@ $^
34
35 tidy dist:
36         rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
37
38 clean: tidy
39         rm -f *.lnx
40
41 spotless: clean
42         rm -f *.lss *.c32 *.com
43         rm -f *~ \#*
44
45 install:
46
47 -include .*.d