aboutsummaryrefslogtreecommitdiff
path: root/resources/utilities/ich9deblob/Makefile
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-24 00:33:45 +0000
committerFrancis Rowe <info@gluglug.org.uk>2014-12-24 00:42:02 +0000
commit8ff050d3893f0115b8bd3f1feda5d032f89fbc32 (patch)
tree6f8a493c19c2f4bcc59adebb7a88bcea97a7b3ea /resources/utilities/ich9deblob/Makefile
parent1082934d042a5f8b397afc48a0b92edd8d779610 (diff)
downloadlibrebootfr-8ff050d3893f0115b8bd3f1feda5d032f89fbc32.tar.gz
librebootfr-8ff050d3893f0115b8bd3f1feda5d032f89fbc32.zip
ich9deblob: Replace makefile (use dependencies)
Use .h and .c files properly. Use header guards. Define function names in .h files (actual functions in the .c files), and so on. Move all functions from the .h files to corresponding .c files.
Diffstat (limited to 'resources/utilities/ich9deblob/Makefile')
-rw-r--r--resources/utilities/ich9deblob/Makefile22
1 files changed, 18 insertions, 4 deletions
diff --git a/resources/utilities/ich9deblob/Makefile b/resources/utilities/ich9deblob/Makefile
index 0a69882a..36a892ce 100644
--- a/resources/utilities/ich9deblob/Makefile
+++ b/resources/utilities/ich9deblob/Makefile
@@ -18,10 +18,24 @@
#
CC=gcc
-CFLAGS=-I.
+CFLAGS=-I. -Wall -g
-ich9deblob: ich9deblob.c descriptor/descriptor.h gbe/gbe.h
- $(CC) $(CFLAGS) ich9deblob.c descriptor/descriptor.h gbe/gbe.h -o ich9deblob
+all: ich9deblob
+
+ich9deblob: main.o descriptor/descriptor.o gbe/gbe.o x86compatibility.o
+ $(CC) $(CFLAGS) main.o descriptor/descriptor.o gbe/gbe.o x86compatibility.o -o ich9deblob
+
+main.o: main.c
+ $(CC) $(CFLAGS) -c main.c -o main.o
+
+descriptor/descriptor.o: descriptor/descriptor.c
+ $(CC) $(CFLAGS) -c descriptor/descriptor.c -o descriptor/descriptor.o
+
+gbe/gbe.o: gbe/gbe.c
+ $(CC) $(CFLAGS) -c gbe/gbe.c -o gbe/gbe.o
+
+x86compatibility.o: x86compatibility.c
+ $(CC) $(CFLAGS) -c x86compatibility.c -o x86compatibility.o
clean:
- rm -f ich9deblob *.o
+ rm -f ich9deblob *.o */*.o