From 4f5bfc68e416a7d1e6264e43278fe9b9df684eed Mon Sep 17 00:00:00 2001 From: nima Date: Mon, 30 Jun 2008 14:14:46 +0000 Subject: 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 --- Makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Makefile') 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 $@ -- cgit