X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/4122ee13ba211a913b04906c39e72e512cb15c08..41506fc5c8cf80c1f1891e1d77f372b9bf5a9ba3:/tools/Makefile diff --git a/tools/Makefile b/tools/Makefile index 1cd4d81..dba267c 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,9 +1,33 @@ +-include ../config.mk + CFLAGS=-I../include -CC=gcc -SMRAM_ICH2_OBJS=smram-linux-tool.o ../pci/pci-linux.o ../ich2/smram-ich2.o +CC=$(CROSS)gcc +SMRAM_ICH2_OBJS=smram-linux-tool.o ../pci/pci-linux.o ../ich2/smram-ich2.noraw.o +PCI_OBJS=pci.o ../pci/pci-linux.o +POKE_RLS_OBJS=poke-rls.o poke-rls-asm.o ../pci/pci-linux.o +FROB_RLS_OBJS=frob-rls.o poke-rls-asm.o ../pci/pci-linux.o + +all: smram-ich2 port pci poke-rls + +%.noraw.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< smram-ich2: $(SMRAM_ICH2_OBJS) - gcc -o smram-ich2 $(SMRAM_ICH2_OBJS) + $(CC) $(CFLAGS) -o smram-ich2 $(SMRAM_ICH2_OBJS) + +port: port.o + $(CC) -o port port.o + +elfload: elfload.o + $(CC) -o elfload elfload.o + +pci: $(PCI_OBJS) + $(CC) $(CFLAGS) -o pci $(PCI_OBJS) + +frob-rls: $(FROB_RLS_OBJS) + $(CC) $(CFLAGS) -o frob-rls $(FROB_RLS_OBJS) clean: rm -f $(SMRAM_ICH2_OBJS) smram-ich2 + +poke: