summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-06-30 14:14:46 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-06-30 14:14:46 +0000
commit4f5bfc68e416a7d1e6264e43278fe9b9df684eed (patch)
tree7d91957dac6645623c3e060771e83cc5dce617cf /Makefile
parente7d6d472c21aa80c28be01c0d6dcbfd250d57a25 (diff)
downloadpython-dmidecode-4f5bfc68e416a7d1e6264e43278fe9b9df684eed.tar.gz
python-dmidecode-4f5bfc68e416a7d1e6264e43278fe9b9df684eed.tar.xz
python-dmidecode-4f5bfc68e416a7d1e6264e43278fe9b9df684eed.zip
Split out the module header into its own file.
Cleaned up Makefile a little. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@2 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 29d4238..ac1b870 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ INSTALL_DIR := $(INSTALL) -m 755 -d
INSTALL_PROGRAM := $(INSTALL) -m 755
RM := rm -f
-PROGRAMS := go
+PROGRAMS := dmidecode
PROGRAMS += $(shell test `uname -m 2>/dev/null` != ia64 && echo biosdecode ownership vpddecode)
# BSD make doesn't understand the $(shell) syntax above, it wants the !=
# syntax below. GNU make ignores the line below so in the end both BSD
@@ -50,21 +50,21 @@ all : $(PROGRAMS)
ldd /usr/lib/python2.4/site-packages/dmidecode.so
python -c 'import dmidecode'
-#. NiMA...
-go: test.c catsprintf.o libdmidecode.so dmidecode.o dmiopt.o dmioem.o util.o
- gcc -o go test.c -L. -I/usr/include/python2.4 -ldmidecode catsprintf.o dmidecode.o dmiopt.o dmioem.o util.o
-libdmidecode.so: dmidecode.o
- gcc -shared $< -o $@
-catsprintf.o: catsprintf.c catsprintf.h
- $(CC) $(CFLAGS) -c $< -o $@
-#. ...NiMA
-
#
# Programs
#
+#. NiMA...
#dmidecode : dmidecode.o dmiopt.o dmioem.o util.o
# $(CC) $(LDFLAGS) dmidecode.o dmiopt.o dmioem.o util.o -o $@
+dmidecode: test.c catsprintf.o libdmidecode.so dmidecode.o dmiopt.o dmioem.o util.o
+ $(CC) $(LDFLAGS) test.c -L. -I/usr/include/python2.4 -ldmidecode catsprintf.o dmidecode.o dmiopt.o dmioem.o util.o -o $@
+libdmidecode.so: dmidecode.o
+ $(CC) $(LDFLAGS) -shared $< -o $@
+catsprintf.o: catsprintf.c catsprintf.h
+ $(CC) $(CFLAGS) -c $< -o $@
+#. ...NiMA
+
biosdecode : biosdecode.o util.o
$(CC) $(LDFLAGS) biosdecode.o util.o -o $@