mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-07 16:14:01 +02:00
Compilation flags
This commit is contained in:
parent
cb05d5a063
commit
4e03e0b953
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -1,11 +1,12 @@
|
|||
CXXFLAGS = -Wall -g -I /usr/include/python2.6/ -fPIC
|
||||
CXXFLAGS += -Wall -g -I /usr/include/python2.6/ -fPIC
|
||||
LDFLAGS += -lnfc
|
||||
OBJECTS = brmdoor_nfc.o brmdoor_nfc_wrap.o
|
||||
PY_MODULE = _brmdoor_nfc.so
|
||||
|
||||
all: $(PY_MODULE)
|
||||
|
||||
$(PY_MODULE): $(OBJECTS)
|
||||
g++ -shared -o $@ $(OBJECTS)
|
||||
g++ -shared -o $@ $(OBJECTS) $(LDFLAGS)
|
||||
|
||||
brmdoor_nfc.o: brmdoor_nfc.cpp brmdoor_nfc.h
|
||||
g++ -c $(CXXFLAGS) brmdoor_nfc.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue