diff options
author | David Sommerseth <davids@redhat.com> | 2009-06-18 15:00:57 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-06-18 15:03:24 +0200 |
commit | a95af5acd4f2591e2c0d42f0284897cd3de90230 (patch) | |
tree | c0ecfc48ed635f11c27336a177df35178cdfb6a1 /Makefile | |
parent | 3849ca0a4abf5eb661758e1341a6e595d3013c2c (diff) | |
download | python-dmidecode-a95af5acd4f2591e2c0d42f0284897cd3de90230.tar.gz python-dmidecode-a95af5acd4f2591e2c0d42f0284897cd3de90230.tar.xz python-dmidecode-a95af5acd4f2591e2c0d42f0284897cd3de90230.zip |
Added dmidump utility
This is a simple utility which dumps DMI/SMBIOS data straight
to a file, written i C and should not depend on anything extra.
Useful to get DMI/SMBIOS data without installing python and/or
python-dmidecode. The data dump can be parsed by python-dmidecode
later on on a different box.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -13,7 +13,9 @@ PY := python$(PY_VER) SO = build/lib.linux-$(shell uname -m)-$(PY_VER)/dmidecodemod.so ############################################################################### -.PHONY: build install uninstall clean tarball rpm unit version +.PHONY: build dmidump install uninstall clean tarball rpm unit version + +all : build dmidump build: $(PY)-dmidecodemod.so $(PY)-dmidecodemod.so: $(SO) @@ -21,6 +23,9 @@ $(PY)-dmidecodemod.so: $(SO) $(SO): $(PY) src/setup.py build +dmidump : src/util.o src/efi.o + $(CC) -o $@ src/dmidump.c $^ -g -Wall -D_DMIDUMP_MAIN_ + install: $(PY) src/setup.py install @@ -29,7 +34,7 @@ uninstall: clean: -$(PY) src/setup.py clean --all - -rm -f *.so lib/*.o core + -rm -f *.so lib/*.o core dmidump -rm -rf build -rm -rf rpm -rm -rf src/setup_common.py[oc] |