Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85824613
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Makefile b/Makefile
index f9b1009..9eefbcf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,31 +1,32 @@
# Apprentice binary
-CC = gcc
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 -I$(ERL_EI_INCLUDE)
-LDLIBS = -L$(ERL_EI_LIB) -lpthread -lei -lm -lmagic
+CFLAGS = -std=c99 -g -Wall -Werror
+CPPFLAGS = -I$(ERL_EI_INCLUDE)
+LDFLAGS = -L$(ERL_EI_LIB)
+LDLIBS = -lpthread -lei -lm -lmagic
BEAM_FILES = _build/
PRIV = priv/
RM = rm -Rf
# Unit test custom magic file
MAGIC = file
TEST_DIRECTORY = test
TARGET_MAGIC = $(TEST_DIRECTORY)/elixir.mgc
SOURCE_MAGIC = $(TEST_DIRECTORY)/elixir
priv/apprentice: src/apprentice.c
mkdir -p priv
- $(CC) $(CFLAGS) $(LDLIBS) $^ -o $@
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LDLIBS) $^ -o $@
# Test case
$(TARGET_MAGIC): $(SOURCE_MAGIC)
cd $(TEST_DIRECTORY); $(MAGIC) -C -m elixir
clean:
$(RM) $(PRIV) $(BEAM_FILES)
.PHONY: clean
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Oct 29, 5:15 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1797697
Default Alt Text
(1 KB)
Attached To
Mode
R20 majic
Attached
Detach File
Event Timeline