Packages

An elixir interface for libgraphqlparser implemented as a NIF for parsing GraphQL.

Current section

Files

Jump to
Raw

Makefile

ERL_INCLUDE_PATH=$(shell erl -eval 'io:format("~s~n", [lists:concat([code:root_dir(), "/erts-", erlang:system_info(version), "/include"])])' -s init stop -noshell)
all: priv/graphql_parser.so
priv/graphql_parser.so: src/graphqlparser_nif.c
cc -undefined dynamic_lookup -dynamiclib -I$(ERL_INCLUDE_PATH) -I/usr/local/include/graphqlparser/ -L/usr/local/lib -lgraphqlparser src/graphqlparser_nif.c -o graphql_parser.so