From 0a3f625c078d200d8867dfc15415b2c8c5534ccc Mon Sep 17 00:00:00 2001 From: nima Date: Sat, 20 Dec 2008 16:54:32 +0000 Subject: Cleanup. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@143 abc39116-655e-4be6-ad55-d661dc543056 --- Makefile | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index d845ed4..e443520 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,32 @@ #. -#. DMI Decode Python Module +#. DMI Decode Python Extension Module #. #. (C) 2008 Nima Talebi #. #. Licensed under the GNU Public License v3 #. -PY := $(shell python -V 2>&1 |sed -e 's/.\(ython\) \(2\.[0-9]\)\..*/p\1\2/') -PY_VER := $(subst python,,$(PY)) - -CC := gcc -RM := rm -f -SRC_D := src -OBJ_D := lib -CFLAGS = -g -D_XOPEN_SOURCE=600 -CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -CFLAGS += -Wwrite-strings -Wmissing-prototypes -Winline -Wundef #-Wcast-qual -CFLAGS += -pthread -fno-strict-aliasing -DNDEBUG -fPIC -CFLAGS += -I/usr/include/$(PY) -CFLAGS += -O3 +VERSION := 2.10 +PY := $(shell python -V 2>&1 |sed -e 's/.\(ython\) \(2\.[0-9]\)\..*/p\1\2/') +PY_VER := $(subst python,,$(PY)) + +CC := gcc +RM := rm -f +SRC_D := src +OBJ_D := lib +CFLAGS = -g -D_XOPEN_SOURCE=600 +CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align +CFLAGS += -Wwrite-strings -Wmissing-prototypes -Winline -Wundef #-Wcast-qual +CFLAGS += -pthread -fno-strict-aliasing -DNDEBUG -fPIC +CFLAGS += -I/usr/include/$(PY) +CFLAGS += -O3 #CFLAGS += -DNDEBUG #CFLAGS += -DBIGENDIAN #CFLAGS += -DALIGNMENT_WORKAROUND #LDFLAGS = -lefence -LDFLAGS = -SOFLAGS = -pthread -shared -L/home/nima/dev-room/projects/dmidecode -lutil -SO = build/lib.linux-$(shell uname -m)-$(PY_VER)/dmidecode.so +LDFLAGS = +SOFLAGS = -pthread -shared -L/home/nima/dev-room/projects/dmidecode -lutil +SO = build/lib.linux-$(shell uname -m)-$(PY_VER)/dmidecode.so #. Search vpath %.o $(OBJ_D) @@ -39,7 +40,7 @@ dmidecode.so: $(SO) cp $< $(PY)-$@ .src: - cd .. && tar czvf python-dmidecode_2.10.orig.tar.gz \ + cd .. && tar czvf python-dmidecode_$(VERSION).orig.tar.gz \ --exclude .svn \ --exclude debian \ --exclude makefile \ -- cgit