diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-20 16:54:32 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-20 16:54:32 +0000 |
commit | 0a3f625c078d200d8867dfc15415b2c8c5534ccc (patch) | |
tree | 3852843c145d8470af61ce8086fb28501b3ed989 /Makefile | |
parent | 3f492c5cb392aa7038d496b7c516dca95d225dee (diff) | |
download | python-dmidecode-0a3f625c078d200d8867dfc15415b2c8c5534ccc.tar.gz python-dmidecode-0a3f625c078d200d8867dfc15415b2c8c5534ccc.tar.xz python-dmidecode-0a3f625c078d200d8867dfc15415b2c8c5534ccc.zip |
Cleanup.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@143 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 19 insertions, 18 deletions
@@ -1,31 +1,32 @@ #. -#. DMI Decode Python Module +#. DMI Decode Python Extension Module #. #. (C) 2008 Nima Talebi <nima@it.net.au> #. #. 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 \ |