Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F114316
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
903 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/Makefile b/Makefile
index 0a9d302..3032cd8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,28 +1,29 @@
calling_from_make:
mix compile
UNAME := $(shell uname)
-CFLAGS ?= -Wall -Werror -Wno-unused-parameter -pedantic -std=c99 -O2 -fsanitize=undefined
+CFLAGS ?= -Wall -Werror -Wno-unused-parameter -pedantic -std=c99 -O2
ifeq ($(UNAME), Darwin)
+ CFLAGS += -fsanitize=undefined
TARGET_CFLAGS ?= -fPIC -undefined dynamic_lookup -dynamiclib -Wextra
endif
ifeq ($(UNAME), Linux)
CFLAGS += -D_POSIX_C_SOURCE=200809L
TARGET_CFLAGS ?= -fPIC -shared
endif
all: priv/exile.so priv/spawner
priv/exile.so: c_src/exile.c
mkdir -p priv
$(CC) -I$(ERL_INTERFACE_INCLUDE_DIR) $(TARGET_CFLAGS) $(CFLAGS) c_src/exile.c -o priv/exile.so
priv/spawner: c_src/spawner.c
mkdir -p priv
$(CC) $(CFLAGS) c_src/spawner.c -o priv/spawner
clean:
@rm -rf priv/exile.so priv/spawner
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Nov 26, 2:54 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40134
Default Alt Text
(903 B)
Attached To
Mode
R14 exile
Attached
Detach File
Event Timeline
Log In to Comment