]> Joshua Wise's Git repositories - netwatch.git/commitdiff
Move elfload into tools/
authorJoshua Wise <joshua@escape.wv.cc.cmu.edu>
Sat, 10 Oct 2009 09:05:35 +0000 (05:05 -0400)
committerJoshua Wise <joshua@escape.wv.cc.cmu.edu>
Sat, 10 Oct 2009 09:05:35 +0000 (05:05 -0400)
elfload/.gitignore [deleted file]
elfload/Makefile [deleted file]
tools/Makefile
tools/elfload.c [moved from elfload/loader.c with 100% similarity]

diff --git a/elfload/.gitignore b/elfload/.gitignore
deleted file mode 100644 (file)
index 955951e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-loader
diff --git a/elfload/Makefile b/elfload/Makefile
deleted file mode 100644 (file)
index be876f8..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-loader: loader.c
-       gcc loader.c -o loader
-
-clean:
-       rm -f loader
index 4b0978bfd3c94bda0d2f0e0902ff8e61cd3b6f5c..dba267ccf0cd1f822558316fcaec86d51b5a55f9 100644 (file)
@@ -1,5 +1,7 @@
+-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
@@ -8,19 +10,22 @@ 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)
 
 frob-rls: $(FROB_RLS_OBJS)
-       gcc $(CFLAGS) -o frob-rls $(FROB_RLS_OBJS)
+       $(CC) $(CFLAGS) -o frob-rls $(FROB_RLS_OBJS)
 
 clean:
        rm -f $(SMRAM_ICH2_OBJS) smram-ich2
similarity index 100%
rename from elfload/loader.c
rename to tools/elfload.c
This page took 0.03665 seconds and 4 git commands to generate.