summaryrefslogtreecommitdiffstats
path: root/resources/utilities/ich9deblob/Makefile
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-25 16:25:49 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-25 16:25:49 (EST)
commita8b13d23f29a08026eaa308b8b09be7e9d1ff5a6 (patch)
tree0cdc767b9b44b94ca4fbec16bf88496bc4656dd4 /resources/utilities/ich9deblob/Makefile
parent655ac91c5db8818c7cef7e9e44febaf36459d394 (diff)
downloadlibreboot-a8b13d23f29a08026eaa308b8b09be7e9d1ff5a6.zip
libreboot-a8b13d23f29a08026eaa308b8b09be7e9d1ff5a6.tar.gz
libreboot-a8b13d23f29a08026eaa308b8b09be7e9d1ff5a6.tar.bz2
ich9deblob: moved src to src/, .o files to obj/
Diffstat (limited to 'resources/utilities/ich9deblob/Makefile')
-rw-r--r--resources/utilities/ich9deblob/Makefile32
1 files changed, 17 insertions, 15 deletions
diff --git a/resources/utilities/ich9deblob/Makefile b/resources/utilities/ich9deblob/Makefile
index f9a6598..87e6da2 100644
--- a/resources/utilities/ich9deblob/Makefile
+++ b/resources/utilities/ich9deblob/Makefile
@@ -19,29 +19,31 @@
CC=gcc
CFLAGS=-I. -Wall -g
+NOLINKER=-c
all: ich9deblob
-ich9deblob: ich9deblob.o common/descriptor_gbe.o descriptor/descriptor.o \
- gbe/gbe.o common/x86compatibility.o
+ich9deblob: obj/ich9deblob.o obj/common/descriptor_gbe.o \
+ obj/descriptor/descriptor.o obj/gbe/gbe.o obj/common/x86compatibility.o
- $(CC) $(CFLAGS) ich9deblob.o common/descriptor_gbe.o common/x86compatibility.o \
- descriptor/descriptor.o gbe/gbe.o -o ich9deblob
+ $(CC) $(CFLAGS) obj/ich9deblob.o obj/common/descriptor_gbe.o \
+ obj/common/x86compatibility.o obj/descriptor/descriptor.o obj/gbe/gbe.o \
+ -o ich9deblob
-ich9deblob.o: ich9deblob.c
- $(CC) $(CFLAGS) -c ich9deblob.c -o ich9deblob.o
+obj/ich9deblob.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/ich9deblob.c -o obj/ich9deblob.o
-common/descriptor_gbe.o: common/descriptor_gbe.c
- $(CC) $(CFLAGS) -c common/descriptor_gbe.c -o common/descriptor_gbe.o
+obj/common/descriptor_gbe.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/common/descriptor_gbe.c -o obj/common/descriptor_gbe.o
-common/x86compatibility.o: common/x86compatibility.c
- $(CC) $(CFLAGS) -c common/x86compatibility.c -o common/x86compatibility.o
+obj/common/x86compatibility.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/common/x86compatibility.c -o obj/common/x86compatibility.o
-descriptor/descriptor.o: descriptor/descriptor.c
- $(CC) $(CFLAGS) -c descriptor/descriptor.c -o descriptor/descriptor.o
+obj/descriptor/descriptor.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/descriptor/descriptor.c -o obj/descriptor/descriptor.o
-gbe/gbe.o: gbe/gbe.c
- $(CC) $(CFLAGS) -c gbe/gbe.c -o gbe/gbe.o
+obj/gbe/gbe.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/gbe/gbe.c -o obj/gbe/gbe.o
clean:
- rm -f ich9deblob *.o */*.o
+ rm -rf ich9deblob obj/*.o obj/*/*.o