X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/4122ee13ba211a913b04906c39e72e512cb15c08..c25f3f39d2a544a91a8a96ea90bda1dc1d77b76a:/tools/Makefile diff --git a/tools/Makefile b/tools/Makefile index 1cd4d81..3bd46a5 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,9 +1,27 @@ CFLAGS=-I../include CC=gcc -SMRAM_ICH2_OBJS=smram-linux-tool.o ../pci/pci-linux.o ../ich2/smram-ich2.o +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 + +all: smram-ich2 port pci poke-rls + +%.noraw.o: %.c + gcc $(CFLAGS) -c -o $@ $< smram-ich2: $(SMRAM_ICH2_OBJS) - gcc -o smram-ich2 $(SMRAM_ICH2_OBJS) + gcc $(CFLAGS) -o smram-ich2 $(SMRAM_ICH2_OBJS) + +port: port.o + gcc -o port port.o + +pci: $(PCI_OBJS) + gcc $(CFLAGS) -o pci $(PCI_OBJS) + +poke-rls: $(POKE_RLS_OBJS) + gcc $(CFLAGS) -o poke-rls $(POKE_RLS_OBJS) clean: rm -f $(SMRAM_ICH2_OBJS) smram-ich2 + +poke: