summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkhali <khali>2003-06-17 12:30:32 +0000
committerkhali <khali>2003-06-17 12:30:32 +0000
commit9e112cb196759b42531cc836676bfcbd69dddcbc (patch)
treef9cff72f7b06fab74c12ed1a012e73a6ee5ede04 /Makefile
parent7a887511ae58c24ed57d65a82a0fa6999f0aad27 (diff)
downloaddmidecode-9e112cb196759b42531cc836676bfcbd69dddcbc.tar.gz
Moved common "util" functions to util.c.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index a385909..9b7c993 100644
--- a/Makefile
+++ b/Makefile
@@ -19,11 +19,20 @@ PREFIX = /usr/local
all : dmidecode biosdecode
-dmidecode : dmidecode.c version.h
- $(CC) $(CFLAGS) $< -o $@
+dmidecode : dmidecode.o util.o
+ $(CC) $^ -o $@
-biosdecode : biosdecode.c version.h
- $(CC) $(CFLAGS) $< -o $@
+biosdecode : biosdecode.o util.o
+ $(CC) $^ -o $@
+
+dmidecode.o : dmidecode.c version.h types.h util.h
+ $(CC) $(CFLAGS) -c $< -o $@
+
+biosdecode.o : biosdecode.c version.h types.h util.h
+ $(CC) $(CFLAGS) -c $< -o $@
+
+util.o : util.c types.h util.h
+ $(CC) $(CFLAGS) -c $< -o $@
install : dmidecode biosdecode
install -m 755 dmidecode $(PREFIX)/sbin
@@ -34,4 +43,4 @@ uninstall :
rm -f $(PREFIX)/sbin/biosdecode
clean :
- rm -f dmidecode biosdecode
+ rm -f *.o dmidecode biosdecode