diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-17 07:20:56 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-17 07:20:56 +0000 |
commit | 39378ee26e0d1d2ab4c76eed22514c6f986c5495 (patch) | |
tree | 3bb1c6a481d384dd41b085f7f3e06bafa802a7e4 | |
parent | b0103d72736fdf47760049dbf880a859b52c88fa (diff) | |
download | python-dmidecode-39378ee26e0d1d2ab4c76eed22514c6f986c5495.tar.gz python-dmidecode-39378ee26e0d1d2ab4c76eed22514c6f986c5495.tar.xz python-dmidecode-39378ee26e0d1d2ab4c76eed22514c6f986c5495.zip |
Cleaning up source area, ready for debianizing, and rpm after that.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@108 abc39116-655e-4be6-ad55-d661dc543056
-rw-r--r-- | Makefile | 15 | ||||
-rwxr-xr-x | doc/example.py (renamed from example.py) | 0 | ||||
-rw-r--r-- | src/config.h (renamed from config.h) | 0 | ||||
-rw-r--r-- | src/dmidecode.c (renamed from dmidecode.c) | 0 | ||||
-rw-r--r-- | src/dmidecode.h (renamed from dmidecode.h) | 0 | ||||
-rw-r--r-- | src/dmidecodemodule.c (renamed from dmidecodemodule.c) | 0 | ||||
-rw-r--r-- | src/dmidecodemodule.h (renamed from dmidecodemodule.h) | 0 | ||||
-rw-r--r-- | src/dmihelper.c (renamed from dmihelper.c) | 0 | ||||
-rw-r--r-- | src/dmihelper.h (renamed from dmihelper.h) | 0 | ||||
-rw-r--r-- | src/dmioem.c (renamed from dmioem.c) | 0 | ||||
-rw-r--r-- | src/dmioem.h (renamed from dmioem.h) | 0 | ||||
-rw-r--r-- | src/setup.py (renamed from setup.py) | 8 | ||||
-rw-r--r-- | src/types.h (renamed from types.h) | 0 | ||||
-rw-r--r-- | src/util.c (renamed from util.c) | 0 | ||||
-rw-r--r-- | src/util.h (renamed from util.h) | 0 | ||||
-rw-r--r-- | src/version.h (renamed from version.h) | 0 |
16 files changed, 18 insertions, 5 deletions
@@ -9,6 +9,8 @@ PY := $(shell python -V 2>&1 |sed -e 's/.\(ython\) \(2\.[0-9]\)\..*/p\1\2/') 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 @@ -23,13 +25,18 @@ LDFLAGS = SOFLAGS = -pthread -shared -L/home/nima/dev-room/projects/dmidecode -lutil SO = /usr/lib/$(PY)/site-packages/dmidecode.so +#. Search +vpath %.o $(OBJ_D) +vpath %.c $(SRC_D) +vpath %.h $(SRC_D) +vpath % $(OBJ_D) ############################################################################### install: build - $(PY) setup.py install + $(PY) src/setup.py install build: - $(PY) setup.py build + $(PY) src/setup.py build ############################################################################### @@ -62,8 +69,8 @@ uninstall: rm -f $(SO) clean : - $(PY) setup.py clean - -$(RM) *.so *.o core + $(PY) src/setup.py clean + -$(RM) lib/*.so lib/*.o core -rm -rf build .PHONY: install clean uninstall module diff --git a/example.py b/doc/example.py index a6c7bf7..a6c7bf7 100755 --- a/example.py +++ b/doc/example.py diff --git a/dmidecode.c b/src/dmidecode.c index 31129be..31129be 100644 --- a/dmidecode.c +++ b/src/dmidecode.c diff --git a/dmidecode.h b/src/dmidecode.h index 46f822f..46f822f 100644 --- a/dmidecode.h +++ b/src/dmidecode.h diff --git a/dmidecodemodule.c b/src/dmidecodemodule.c index 5ede36e..5ede36e 100644 --- a/dmidecodemodule.c +++ b/src/dmidecodemodule.c diff --git a/dmidecodemodule.h b/src/dmidecodemodule.h index 02131c6..02131c6 100644 --- a/dmidecodemodule.h +++ b/src/dmidecodemodule.h diff --git a/dmihelper.c b/src/dmihelper.c index 6d52e04..6d52e04 100644 --- a/dmihelper.c +++ b/src/dmihelper.c diff --git a/dmihelper.h b/src/dmihelper.h index 63415fe..63415fe 100644 --- a/dmihelper.h +++ b/src/dmihelper.h @@ -10,7 +10,13 @@ setup( ext_modules = [ Extension( "dmidecode", - sources = [ "dmidecodemodule.c", "dmihelper.c", "util.c", "dmioem.c", "dmidecode.c" ], + sources = [ + "src/dmidecodemodule.c", + "src/dmihelper.c", + "src/util.c", + "src/dmioem.c", + "src/dmidecode.c" + ], library_dirs = [ "/home/nima/dev-room/projects/dmidecode" ], libraries = [ "util" ], #libraries = [ "util", "efence" ], diff --git a/version.h b/src/version.h index 050cf7a..050cf7a 100644 --- a/version.h +++ b/src/version.h |