Page MenuHomePhorge

No OneTemporary

Size
771 B
Referenced Files
None
Subscribers
None
diff --git a/Makefile b/Makefile
index ce342ea..5d60819 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,17 @@
-ERL_EI_INCLUDE:=$(shell erl -eval 'io:format("~s", [code:lib_dir(erl_interface, include)])' -s init stop -noshell | head -1)
-ERL_EI_LIB:=$(shell erl -eval 'io:format("~s", [code:lib_dir(erl_interface, lib)])' -s init stop -noshell | head -1)
CFLAGS = -std=c99 -g -Wall -Werror
-CPPFLAGS = -I$(ERL_EI_INCLUDE)
-LDFLAGS = -L$(ERL_EI_LIB)
+CPPFLAGS = -I$(ERL_EI_INCLUDE_DIR)
+LDFLAGS = -L$(ERL_EI_LIBDIR)
LDLIBS = -lpthread -lei -lm -lmagic
PRIV = priv/
RM = rm -Rf
all: priv/libmagic_port
priv/libmagic_port: src/libmagic_port.c
mkdir -p priv
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
clean:
$(RM) $(PRIV)
.PHONY: clean

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 4:32 AM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39577
Default Alt Text
(771 B)

Event Timeline