summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkhali <khali>2003-01-19 18:32:28 +0000
committerkhali <khali>2003-01-19 18:32:28 +0000
commitc7a2c7eb852f056dead0e1634091e6f64073da4c (patch)
tree98242958dbe832c07b0e84b8db7a4e8d10aa2da0 /Makefile
parentd7a25fa0196eb8424e3acf864bcac016bb49c647 (diff)
downloaddmidecode-c7a2c7eb852f056dead0e1634091e6f64073da4c.tar.gz
A simple Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9c4b07e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+#
+# DMI decode
+#
+# (C) 2000-2002 Alan Cox <alan@redhat.com>
+#
+# Licensed under the GNU Public license. If you want to use it in with
+# another license just ask.
+#
+
+CC = gcc
+CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
+ -Wcast-align -Wwrite-strings -Wnested-externs -Winline -O2 \
+ -pedantic -g
+TARGET = dmidecode
+PREFIX = /usr/local
+
+all : $(TARGET)
+
+$(TARGET) : dmidecode.c
+ $(CC) $(CFLAGS) $< -o $@
+
+install : $(TARGET)
+ install -m 755 $(TARGET) $(PREFIX)/sbin
+
+uninstall :
+ rm -f $(PREFIX)/sbin/$(TARGET)
+
+clean :
+ rm -f $(TARGET)