X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/81148fa15713ee68be49610206526d0725a5868f..4509619557e06ff851f93ddf1eaca7a898d46b2f:/tools/Makefile diff --git a/tools/Makefile b/tools/Makefile index df15340..c53fd4a 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,6 +1,21 @@ 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 + +all: smram-ich2 port pci + +%.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) + +clean: + rm -f $(SMRAM_ICH2_OBJS) smram-ich2