mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-08 00:24:00 +02:00
Initial commit
This commit is contained in:
commit
cafd967ed6
6 changed files with 74 additions and 0 deletions
20
Makefile
Normal file
20
Makefile
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue