Skip to content

Commit 8c8bb36

Browse files
committed
DfA library: Makefile for Mac OS
1 parent 7f0be1f commit 8c8bb36

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

program/dfa-lib/Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
######################################################################
2-
#
2+
# Environment variables
33

4+
MACOS ?= 1
45
DFANALYZER_DIR ?= ./dfanalyzer
5-
66
target := lib/libdfanalyzer.so
77

88

@@ -13,7 +13,12 @@ target := lib/libdfanalyzer.so
1313
#
1414
# source files
1515
srcfiles := $(wildcard src/*.cpp)
16-
CXXFLAGS := -I./include -g -fPIC
16+
17+
CXXFLAGS := -I./include -g -fPIC
18+
ifeq (${MACOS}, 1)
19+
CXXFLAGS += -w -std=c++11
20+
endif
21+
1722
LDFLAGS := -lcurl -shared -fPIC
1823

1924
CXX := g++
@@ -63,7 +68,7 @@ echo:
6368

6469
%.o: %.cpp $(DEPS)
6570
@echo "Compiling "$<"..."
66-
@$(CXX) -c $< -o $@ $(CXXFLAGS)
71+
@$(CXX) -c $< -o $@ $(CXXFLAGS)
6772

6873
###############################################################################
6974

program/dfa-lib/lib/libdfanalyzer.so

480 KB
Binary file not shown.

0 commit comments

Comments
 (0)