aboutsummaryrefslogblamecommitdiffstats
path: root/config.mk
blob: 514c92c01424f2825a6701b2b33ab7653500da30 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                
                               
                                                               


                                         

                                

                                                              

                                                                      
 


                                                                            
PREFIX    = /usr
MANPREFIX = $(PREFIX)/share/man
PYTHONDIR = $(PREFIX)/lib/python$(PYTHON_MAJOR).$(PYTHON_MINOR)
PYTHONPKGDIR = $(PYTHONDIR)/site-packages

CC     = cc
CYTHON = cython$(PYTHON_MAJOR)
PYTHON = python$(PYTHON_VERSION)

CPPFLAGS  = -D_DEFAULT_SOURCE -D_BSD_SOUCE -D_XOPEN_SOURCE=700
CFLAGS    = -std=c99 -O2 $$(pkg-config --cflags python$(PYTHON_MAJOR))
LDFLAGS   = -s $$(pkg-config --libs python$(PYTHON_MAJOR)) -lbus

PYTHON_MAJOR   = $$(python --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1)
PYTHON_MINOR   = $$(python$(PYTHON_MAJOR) --version 2>&1 | cut -d . -f 2)
PYTHON_VERSION = $(PYTHON_MAJOR).$(PYTHON_MINOR)