diff options
author | khali <khali> | 2003-06-17 19:20:50 +0000 |
---|---|---|
committer | khali <khali> | 2003-06-17 19:20:50 +0000 |
commit | ba5d76bdaa1d9de940d31c3e7ea0ff9a53c302fc (patch) | |
tree | 7fb8a99277a51301d5863443ff697e054083fcd1 /Makefile | |
parent | cbedc46cc619293ea5a53cc6270628db6a2992bc (diff) | |
download | dmidecode-ba5d76bdaa1d9de940d31c3e7ea0ff9a53c302fc.tar.gz |
Modified to support ownership (new program).
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |