]> Joshua Wise's Git repositories - netwatch.git/blobdiff - tools/Makefile
Add port tool
[netwatch.git] / tools / Makefile
index df153409b352bdbe4a4ade9bb3c7249b34f197fc..7402d797f6adfd47640927cfcea6687aa9fc4347 100644 (file)
@@ -1,6 +1,17 @@
 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
+
+all: smram-ich2 port
+
+%.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
+
+clean:
+       rm -f $(SMRAM_ICH2_OBJS) smram-ich2
This page took 0.020112 seconds and 4 git commands to generate.