summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2003-03-01 15:42:22 +0000
committerJean Delvare <jdelvare@suse.de>2003-03-01 15:42:22 +0000
commitd8fc38b86308edf335f02186ddf0eff6b1a97fe3 (patch)
tree3be9233bbb000dde61fbcd4233ad97eb86754b23 /Makefile
parent8799ea4b4e74ec6b1ef7d2e5423d90ac93aa8796 (diff)
downloaddmidecode-git-d8fc38b86308edf335f02186ddf0eff6b1a97fe3.tar.gz
Added target biosdecode.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 15 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 9c4b07e..98120fa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
#
-# DMI decode
+# DMI Decode
+# BIOS Decode
#
# (C) 2000-2002 Alan Cox <alan@redhat.com>
+# (C) 2001-2002 Jean Delvare <khali@linux-fr.org>
#
# Licensed under the GNU Public license. If you want to use it in with
# another license just ask.
@@ -9,21 +11,24 @@
CC = gcc
CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
- -Wcast-align -Wwrite-strings -Wnested-externs -Winline -O2 \
- -pedantic -g
-TARGET = dmidecode
+ -Wcast-align -Wwrite-strings -O2 -pedantic -g
PREFIX = /usr/local
-all : $(TARGET)
+all : dmidecode biosdecode
-$(TARGET) : dmidecode.c
+dmidecode : dmidecode.c
$(CC) $(CFLAGS) $< -o $@
-install : $(TARGET)
- install -m 755 $(TARGET) $(PREFIX)/sbin
+biosdecode : biosdecode.c
+ $(CC) $(CFLAGS) $< -o $@
+
+install : dmidecode biosdecode
+ install -m 755 dmidecode $(PREFIX)/sbin
+ install -m 755 biosdecode $(PREFIX)/sbin
uninstall :
- rm -f $(PREFIX)/sbin/$(TARGET)
+ rm -f $(PREFIX)/sbin/dmidecode
+ rm -f $(PREFIX)/sbin/biosdecode
clean :
- rm -f $(TARGET)
+ rm -f dmidecode biosdecode