summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2005-06-15 18:22:35 +0000
committerJean Delvare <jdelvare@suse.de>2005-06-15 18:22:35 +0000
commit51ddda53544019ee846861b6aac7bdab8197d23c (patch)
tree9396d9fc0a9e4d8220e4f1dd79ed3c5cfba7bcc0 /Makefile
parent94cc0fc7c01d0ee4ff58f5b4c1963202a2e26ec4 (diff)
downloaddmidecode-git-51ddda53544019ee846861b6aac7bdab8197d23c.tar.gz
Move the command line handling of dmidecode to a separate source file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 57f498d..0cd4dd7 100644
--- a/Makefile
+++ b/Makefile
@@ -40,8 +40,8 @@ all : dmidecode biosdecode ownership vpddecode
# Programs
#
-dmidecode : dmidecode.o util.o
- $(CC) $(LDFLAGS) dmidecode.o util.o -o $@
+dmidecode : dmidecode.o dmiopt.o util.o
+ $(CC) $(LDFLAGS) dmidecode.o dmiopt.o util.o -o $@
biosdecode : biosdecode.o util.o
$(CC) $(LDFLAGS) biosdecode.o util.o -o $@
@@ -56,7 +56,10 @@ vpddecode : vpddecode.o util.o
# Objects
#
-dmidecode.o : dmidecode.c version.h types.h util.h config.h
+dmidecode.o : dmidecode.c version.h types.h util.h config.h dmiopt.h
+ $(CC) $(CFLAGS) -c $< -o $@
+
+dmiopt.o : dmiopt.c config.h types.h dmiopt.h
$(CC) $(CFLAGS) -c $< -o $@
biosdecode.o : biosdecode.c version.h types.h util.h config.h