summaryrefslogtreecommitdiffstats
path: root/oncology/dpfhack_display/python/Makefile
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-20 23:21:48 +0200
committermakefu <github@syntax-fehler.de>2011-08-20 23:21:48 +0200
commit37e09437c2f20ac269f8d2b7f9c7f7cd325f0585 (patch)
treee1ea709db90614f48c7d7b2a2162236b8ef69889 /oncology/dpfhack_display/python/Makefile
parent9bbf4fa73c2d48864e58d624629bd4bac7a69673 (diff)
oncology: initial commit
oncology will analyse the current krebs status
Diffstat (limited to 'oncology/dpfhack_display/python/Makefile')
-rw-r--r--oncology/dpfhack_display/python/Makefile69
1 files changed, 69 insertions, 0 deletions
diff --git a/oncology/dpfhack_display/python/Makefile b/oncology/dpfhack_display/python/Makefile
new file mode 100644
index 00000000..6d10be20
--- /dev/null
+++ b/oncology/dpfhack_display/python/Makefile
@@ -0,0 +1,69 @@
+# Cygwin/Linux-GCC Makefile
+#
+# $Id: Makefile 301 2010-09-30 13:09:13Z strubi $
+#
+# This is the GNU Makefile to create:
+# - a Python module for the API tester
+#
+
+DEVLIB = ..
+
+############################################################################
+# Configure these to your needs
+LIBNAME = dpf
+DLLCSRCS =
+COMMONSRCDIR = $(DEVLIB)/python
+DLLINSTALLDIR = ../$(CONFIG)
+DLLCOMMONSRCS = py_device.c
+DEBUGOPTS = -g
+
+ifdef DEBUG
+ DEBUGOPTS += -DDEBUG
+endif
+
+CLIENTLIB = -L$(DEVLIB)/dpflib -ldpf -lusb
+
+############################################################################
+
+MODULENAME = $(LIBNAME)
+
+ifndef PLATFORM
+PLATFORM=$(shell "uname")
+endif
+
+ifeq (Linux, $(PLATFORM))
+ PYTHON=$(shell pyversions -d)
+ include $(DEVLIB)/unixdll.mk
+ DLLDEPS = $(CLIENTLIB) -l$(PYTHON)
+ PYTHONINCLUDES = -I/usr/include/$(PYTHON)
+else
+
+ PYTHONSRC = $(HOME)/src/EXTERN/Python26
+
+ifeq (mingw32, $(PLATFORM))
+ include $(DEVLIB)/msdll.mk
+ PYTHONINCLUDES = -I$(PYTHONSRC)/include
+ CFLAGS += -DDLL_EXPORTS
+ DLLDEPS = -L$(PYTHONSRC)/libs -lpython26
+ DLLDEPS += $(CLIENTLIB) -lws2_32
+ DLLTOOL = i586-mingw32msvc-dlltool
+ DLLWRAP = i586-mingw32msvc-dllwrap
+endif
+endif
+
+INCLUDES = -I$(DEVLIB)/include -I$(DEVLIB)/dpflib
+INCLUDES += $(PYTHONINCLUDES)
+
+CFLAGS += -DMODULENAME=$(MODULENAME)
+CFLAGS += -Wall
+
+all: dll
+
+install:: installdll
+ @cp $(DLL) $(DLLINSTALLDIR)/$(INSTALLNAME)$(DLLEXT)
+ @echo -------------------------------------------------------------------
+ @echo Python module installed in:
+ @echo `pwd`/$(DLLINSTALLDIR)/$(INSTALLNAME)$(DLLEXT)
+ @echo -------------------------------------------------------------------
+ @echo
+