Packages

nkf implemented in NIFs for Elixir.

Retired package: Deprecated - deprecated

Current section

Files

Jump to
nkfex Makefile
Raw

Makefile

MIX = mix
CFLAGS += -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -std=gnu99 -Wno-unused-function
ERLANG_PATH = $(shell erl -eval 'io:format("~s", [lists:concat([code:root_dir(), "/erts-", erlang:system_info(version), "/include"])])' -s init stop -noshell)
CFLAGS += -I$(ERLANG_PATH)
ifneq ($(OS),Windows_NT)
CFLAGS += -fPIC
ifeq ($(shell uname),Darwin)
LDFLAGS += -dynamiclib -undefined dynamic_lookup
endif
endif
.PHONY: all nkf clean
all: priv/nkf_nif.so
priv/nkf_nif.so: src/nkf_nif.c
$(CC) $(CFLAGS) -shared $(LDFLAGS) -o $@ src/nkf_nif.c
clean:
$(RM) priv/*