From 8ff050d3893f0115b8bd3f1feda5d032f89fbc32 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Wed, 24 Dec 2014 00:33:45 +0000 Subject: 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. --- resources/utilities/ich9deblob/Makefile | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'resources/utilities/ich9deblob/Makefile') 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 -- cgit v1.2.3-70-g09d2