]> Joshua Wise's Git repositories - netwatch.git/blobdiff - tools/Makefile
Move much more logic out into smi.c again.
[netwatch.git] / tools / Makefile
index 1cd4d812ef0b34cdc78a231996164d415504abff..c53fd4a28ea5eda3adee65f5b13e83a2ec6bfa1b 100644 (file)
@@ -1,9 +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
This page took 0.024759 seconds and 4 git commands to generate.