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 VPATH = $(SRC) 19 include $(MAKEDIR)/elf.mk 20 21 MODULES = 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 pwd.c32 ifplop.c32 zzjson.c32 \ 26 whichsys.c32 prdhcp.c32 pxechn.c32 kontron_wdt.c32 ifmemdsk.c32 \ 27 hexdump.c32 poweroff.c32 cptime.c32 debug.c32 28 29 TESTFILES = 30 31 all: $(MODULES) $(TESTFILES) 32 33 .PRECIOUS: %.o 34 dmitest.o: dmitest.c 35 $(CC) $(CFLAGS) $(GPLINCLUDE) -c -o $@ $< 36 37 dmitest.elf : dmi_utils.o dmitest.o $(C_LIBS) 38 $(LD) $(LDFLAGS) -o $@ $^ 39 40 tidy dist: 41 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp 42 43 clean: tidy 44 rm -f *.lnx 45 46 spotless: clean 47 rm -f *.lss *.c32 *.com 48 rm -f *~ \#* 49 50 install: 51 52 -include .*.d 53