]> Joshua Wise's Git repositories - netwatch.git/blobdiff - tools/Makefile
More ICH2-specific code diked out.
[netwatch.git] / tools / Makefile
index df153409b352bdbe4a4ade9bb3c7249b34f197fc..dba267ccf0cd1f822558316fcaec86d51b5a55f9 100644 (file)
@@ -1,6 +1,33 @@
+-include ../config.mk
+
 CFLAGS=-I../include
 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)
 
 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:
This page took 0.02579 seconds and 4 git commands to generate.