Adding upstream version 4.00~pre61+dfsg.
[syslinux-debian/hramrach.git] / com32 / modules / Makefile
blobd38af0f01bcdbf4976e4be2a126b182a31b2e94b
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.
12 ## -----------------------------------------------------------------------
15 ## COM32 standard modules
18 topdir = ../..
19 include ../MCONFIG
21 MODULES = chain.c32 config.c32 ethersel.c32 dmitest.c32 cpuidtest.c32 \
22 disk.c32 pcitest.c32 elf.c32 linux.c32 reboot.c32 pmload.c32 \
23 meminfo.c32 sdi.c32 sanboot.c32 ifcpu64.c32 vesainfo.c32 \
24 kbdmap.c32 cmd.c32 vpdtest.c32 host.c32 ls.c32 gpxecmd.c32 \
25 ifcpu.c32 cpuid.c32 cat.c32
27 TESTFILES =
29 all: $(MODULES) $(TESTFILES)
31 pcitest.elf : pcitest.o $(LIBS) $(C_LIBS)
32 $(LD) $(LDFLAGS) -o $@ $^
34 cpuidtest.elf : cpuidtest.o $(GPLLIB) $(LIBS) $(C_LIBS)
35 $(LD) $(LDFLAGS) -o $@ $^
37 .PRECIOUS: %.o
38 dmitest.o: dmitest.c
39 $(CC) $(CFLAGS) $(GPLINCLUDE) -c -o $@ $<
41 dmitest.elf : dmi_utils.o dmitest.o $(GPLLIB) $(LIBS) $(C_LIBS)
42 $(LD) $(LDFLAGS) -o $@ $^
44 ethersel.elf : ethersel.o $(LIBS) $(C_LIBS)
45 $(LD) $(LDFLAGS) -o $@ $^
47 tidy dist:
48 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
50 clean: tidy
51 rm -f *.lnx
53 spotless: clean
54 rm -f *.lss *.c32 *.com
55 rm -f *~ \#*
57 install:
59 -include .*.d