We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f0be1f commit 8c8bb36Copy full SHA for 8c8bb36
program/dfa-lib/Makefile
@@ -1,8 +1,8 @@
1
######################################################################
2
-#
+# Environment variables
3
4
+MACOS ?= 1
5
DFANALYZER_DIR ?= ./dfanalyzer
-
6
target := lib/libdfanalyzer.so
7
8
@@ -13,7 +13,12 @@ target := lib/libdfanalyzer.so
13
#
14
# source files
15
srcfiles := $(wildcard src/*.cpp)
16
-CXXFLAGS := -I./include -g -fPIC
+
17
+CXXFLAGS := -I./include -g -fPIC
18
+ifeq (${MACOS}, 1)
19
+ CXXFLAGS += -w -std=c++11
20
+endif
21
22
LDFLAGS := -lcurl -shared -fPIC
23
24
CXX := g++
@@ -63,7 +68,7 @@ echo:
63
68
64
69
%.o: %.cpp $(DEPS)
65
70
@echo "Compiling "$<"..."
66
- @$(CXX) -c $< -o $@ $(CXXFLAGS)
71
+ @$(CXX) -c $< -o $@ $(CXXFLAGS)
67
72
73
###############################################################################
74
program/dfa-lib/lib/libdfanalyzer.so
480 KB
0 commit comments