Initial commit

This commit is contained in:
Ondrej Mikle 2014-07-19 01:08:30 +02:00
commit cafd967ed6
6 changed files with 74 additions and 0 deletions

20
Makefile Normal file
View file

@ -0,0 +1,20 @@
CXXFLAGS = -Wall -g -I /usr/include/python2.6/ -fPIC
OBJECTS = brmdoor_nfc.o brmdoor_nfc_wrap.o
PY_MODULE = _brmdoor_nfc.so
all: $(PY_MODULE)
$(PY_MODULE): $(OBJECTS)
g++ -shared -o $@ $(OBJECTS)
brmdoor_nfc.o: brmdoor_nfc.cpp brmdoor_nfc.h
g++ -c $(CXXFLAGS) brmdoor_nfc.cpp
brmdoor_nfc_wrap.o: brmdoor_nfc_wrap.cxx
g++ -c $(CXXFLAGS) $<
brmdoor_nfc_wrap.cxx: brmdoor_nfc.i
swig -python -c++ $<
clean:
rm -f $(OBJECTS) $(PY_MODULE)