d8861c48f2edce114664978e657319afc9f52800
[profile/ivi/syslinux.git] / com32 / modules / 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., 53 Temple Place Ste 330,
9 ##   Boston MA 02111-1307, USA; either version 2 of the License, or
10 ##   (at your option) any later version; incorporated herein by reference.
11 ##
12 ## -----------------------------------------------------------------------
13
14 ##
15 ## COM32 standard modules
16 ##
17
18 topdir = ../..
19 MAKEDIR = $(topdir)/mk
20 include $(MAKEDIR)/com32.mk
21
22 MODULES   = config.c32 ethersel.c32 dmitest.c32 cpuidtest.c32 \
23             disk.c32 pcitest.c32 elf.c32 linux.c32 reboot.c32 pmload.c32 \
24             meminfo.c32 sdi.c32 sanboot.c32 ifcpu64.c32 vesainfo.c32 \
25             kbdmap.c32 cmd.c32 vpdtest.c32 host.c32 ls.c32 gpxecmd.c32 \
26             ifcpu.c32 cpuid.c32 cat.c32 pwd.c32 ifplop.c32 zzjson.c32 \
27             whichsys.c32 pxechn.c32
28
29 TESTFILES =
30
31 all: $(MODULES) $(TESTFILES)
32
33 pcitest.elf : pcitest.o $(LIBS) $(C_LIBS)
34         $(LD) $(LDFLAGS) -o $@ $^
35
36 cpuidtest.elf : cpuidtest.o $(GPLLIB) $(LIBS) $(C_LIBS)
37         $(LD) $(LDFLAGS) -o $@ $^
38
39 .PRECIOUS: %.o
40 dmitest.o: dmitest.c
41         $(CC) $(CFLAGS) $(GPLINCLUDE) -c -o $@ $<
42
43 dmitest.elf :  dmi_utils.o dmitest.o $(GPLLIB) $(LIBS) $(C_LIBS)
44         $(LD) $(LDFLAGS) -o $@ $^
45
46 ethersel.elf : ethersel.o $(LIBS) $(C_LIBS)
47         $(LD) $(LDFLAGS) -o $@ $^
48
49 tidy dist:
50         rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
51
52 clean: tidy
53         rm -f *.lnx
54
55 spotless: clean
56         rm -f *.lss *.c32 *.com
57         rm -f *~ \#*
58
59 install:
60
61 -include .*.d