summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-17 07:20:56 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-17 07:20:56 +0000
commit39378ee26e0d1d2ab4c76eed22514c6f986c5495 (patch)
tree3bb1c6a481d384dd41b085f7f3e06bafa802a7e4 /Makefile
parentb0103d72736fdf47760049dbf880a859b52c88fa (diff)
downloadpython-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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2465526..6da92fc 100644
--- a/Makefile
+++ b/Makefile
@@ -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