X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/4122ee13ba211a913b04906c39e72e512cb15c08..434f1ddc94acd188ebbea1deae6c3cb67caf2275:/tools/Makefile diff --git a/tools/Makefile b/tools/Makefile index 1cd4d81..7402d79 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,9 +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