X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/0889f342f13f65b875e67f78a27ad078f3f55736..789ebb2d04033053b3cfeaa73648e3a1c3b3d8f5:/tools/Makefile diff --git a/tools/Makefile b/tools/Makefile index 3bd46a5..dba267c 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,25 +1,31 @@ +-include ../config.mk + CFLAGS=-I../include -CC=gcc +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 - gcc $(CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS) -c -o $@ $< smram-ich2: $(SMRAM_ICH2_OBJS) - gcc $(CFLAGS) -o smram-ich2 $(SMRAM_ICH2_OBJS) + $(CC) $(CFLAGS) -o smram-ich2 $(SMRAM_ICH2_OBJS) port: port.o - gcc -o port port.o + $(CC) -o port port.o + +elfload: elfload.o + $(CC) -o elfload elfload.o pci: $(PCI_OBJS) - gcc $(CFLAGS) -o pci $(PCI_OBJS) + $(CC) $(CFLAGS) -o pci $(PCI_OBJS) -poke-rls: $(POKE_RLS_OBJS) - gcc $(CFLAGS) -o poke-rls $(POKE_RLS_OBJS) +frob-rls: $(FROB_RLS_OBJS) + $(CC) $(CFLAGS) -o frob-rls $(FROB_RLS_OBJS) clean: rm -f $(SMRAM_ICH2_OBJS) smram-ich2