| 1 |
# |
| 2 |
# |
| 3 |
# WARNING: do not run this directly, it should be run by the main Makefile |
| 4 |
|
| 5 |
include ../../Makefile.defs |
| 6 |
auto_gen= |
| 7 |
NAME=jwt.so |
| 8 |
|
| 9 |
ifeq ($(CROSS_COMPILE),) |
| 10 |
JWT_BUILDER=$(shell \ |
| 11 |
if pkg-config --exists libjwt; then \ |
| 12 |
echo 'pkg-config libjwt'; \ |
| 13 |
fi) |
| 14 |
endif |
| 15 |
|
| 16 |
ifneq ($(JWT_BUILDER),) |
| 17 |
DEFS += $(shell $(JWT_BUILDER) --cflags) |
| 18 |
LIBS += $(shell $(JWT_BUILDER) --libs) |
| 19 |
else |
| 20 |
DEFS += -I$(LOCALBASE)/include |
| 21 |
LIBS += -L$(LOCALBASE)/lib -ljwt |
| 22 |
endif |
| 23 |
|
| 24 |
include ../../Makefile.modules |
| 25 |
|