Skip to content

Commit 7451e1c

Browse files
author
Stephen Hall
committed
Makefile
1 parent fa07c31 commit 7451e1c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ RELEASE_LIBS_Linux = -lsfml-system -lsfml-window -lsfml-graphics
77

88
COMPILER_Darwin = clang++
99
CXX_FLAGS_Darwin = -Wall -std=c++11 -stdlib=libc++
10-
DEBUG_LIBS_Darwin = -framework SFML -framework sfml-system -framework sfml-window -framework sfml-graphics
10+
CXX_INCLUDE_Darwin = -I/opt/local/include
11+
DEBUG_LIBS_Darwin = -framework SFML -framework sfml-system -framework sfml-window -framework sfml-graphics
1112
RELEASE_LIBS_Darwin = $(DEBUG_LIBS)
1213

1314
COMPILER = $(COMPILER_$(UNAME))
1415
CXX_FLAGS = $(CXX_FLAGS_$(UNAME))
16+
CXX_INCLUDE = $(CXX_INCLUDE_$(UNAME))
1517
DEBUG_LIBS = $(DEBUG_LIBS_$(UNAME))
1618
RELEASE_LIBS = $(RELEASE_LIBS_$(UNAME))
1719

@@ -34,4 +36,8 @@ release: main
3436

3537
main:
3638
cd src; \
37-
$(COMPILER) $(CXX_FLAGS) $(CXX_PREPROCESSOR) -o $(TARGET) $(SOURCE) $(LIBS)
39+
$(COMPILER) $(CXX_FLAGS) $(CXX_PREPROCESSOR) -o $(TARGET) $(CXX_INCLUDE) $(SOURCE) $(LIBS)
40+
41+
ifeq ($(UNAME), Darwin)
42+
sh MacOS/bundle.sh
43+
endif

0 commit comments

Comments
 (0)