summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkhali <khali>2003-06-17 19:20:50 +0000
committerkhali <khali>2003-06-17 19:20:50 +0000
commitba5d76bdaa1d9de940d31c3e7ea0ff9a53c302fc (patch)
tree7fb8a99277a51301d5863443ff697e054083fcd1 /Makefile
parentcbedc46cc619293ea5a53cc6270628db6a2992bc (diff)
downloaddmidecode-ba5d76bdaa1d9de940d31c3e7ea0ff9a53c302fc.tar.gz
Modified to support ownership (new program).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9b7c993..45213de 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,10 @@ CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
#CFLAGS += -DTABLE_LITTLEENDIAN
PREFIX = /usr/local
-all : dmidecode biosdecode
+all : dmidecode biosdecode ownership
+
+ownership : ownership.o util.o
+ $(CC) $^ -o $@
dmidecode : dmidecode.o util.o
$(CC) $^ -o $@
@@ -31,16 +34,21 @@ dmidecode.o : dmidecode.c version.h types.h util.h
biosdecode.o : biosdecode.c version.h types.h util.h
$(CC) $(CFLAGS) -c $< -o $@
+ownership.o : ownership.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
install -m 755 biosdecode $(PREFIX)/sbin
+ install -m 755 ownership $(PREFIX)/sbin
uninstall :
rm -f $(PREFIX)/sbin/dmidecode
rm -f $(PREFIX)/sbin/biosdecode
+ rm -f $(PREFIX)/sbin/ownership
clean :
- rm -f *.o dmidecode biosdecode
+ rm -f *.o dmidecode biosdecode ownership