forked from titi38/libnavajo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request titi38#23 from jcourtat/add_auth_bearer
Add authorization via bearer
- Loading branch information
Showing
4 changed files
with
247 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
############################## | ||
# EXAMPLE # | ||
# created by T.DESCOMBES # | ||
# created by J.COURTAT # | ||
# 2017 # | ||
############################## | ||
|
||
UNAME := $(shell uname) | ||
|
||
ifeq ($(UNAME), Linux) | ||
OS = LINUX | ||
else ifeq ($(UNAME), Darwin) | ||
OS = MACOSX | ||
else | ||
OS = OTHER | ||
endif | ||
|
||
LIB_DIR = lib | ||
CXX = g++ | ||
|
||
ifeq ($(OS),MACOSX) | ||
LIBS = -lnavajo -L../../$(LIB_DIR) -lz $(shell pkg-config --libs-only-L libjwt) $(shell pkg-config --libs-only-l libjwt) | ||
DEFS = -D__darwin__ -D__x86__ -fPIC -fno-common -D_REENTRANT | ||
CXXFLAGS = -O3 -Wdeprecated-declarations | ||
else | ||
LIBS = -lnavajo -L../../$(LIB_DIR) -lz $(shell pkg-config --libs-only-L libjwt) $(shell pkg-config --libs-only-l libjwt) -pthread | ||
DEFS = -DLINUX -Wall -Wno-unused -fexceptions -fPIC -D_REENTRANT | ||
CXXFLAGS = -O3 -Wdeprecated-declarations | ||
endif | ||
|
||
CPPFLAGS = -I. \ | ||
$(shell pkg-config --cflags libjwt)\ | ||
-I../../include \ | ||
-I../../MPFDParser-1.1.1 | ||
|
||
LD = g++ | ||
|
||
LDFLAGS = -Wall -Wno-unused -O4 | ||
|
||
EXAMPLE_NAME = example | ||
|
||
EXAMPLE_OBJS = \ | ||
example.o | ||
|
||
####################### | ||
# DEPENDENCE'S RULES # | ||
####################### | ||
|
||
%.o: %.cc | ||
$(CXX) -c $< -o $@ $(CXXFLAGS) $(CPPFLAGS) $(DEFS) | ||
|
||
all: $(EXAMPLE_NAME) | ||
|
||
$(EXAMPLE_NAME): $(EXAMPLE_OBJS) $(LIB_STATIC_NAME) | ||
rm -f $@ | ||
$(LD) $(LDFLAGS) -o $@ $(EXAMPLE_OBJS) $(LIB_STATIC_NAME) $(LIBS) | ||
|
||
clean: | ||
@for i in $(EXAMPLE_OBJS); do rm -f $$i ; done |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters