-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
22 lines (20 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#customizable-kind of
CXX=g++
OUTPUT=dist/main.dylib
SDK_LOCATION=/Users/jakrillis/projects/builds/macosx-sdks/MacOSX10.7.sdk/
# no touch
INCL=Cacao/include Cacao/include/cocos2dx Cacao/include/cocos2dx/include Cacao/include/cocos2dx/kazmath/include Cacao/include/cocos2dx/platform/mac Cacao/include/cocos2dx/platform/third_party/mac Cacao/include/cocos2dx/platform/third_party/mac/OGLES Cacao/include/cocos2dext Cacao/include/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra
CXX_INCL=$(INCL:%=-I%)
CXX_FLAGS= -mmacosx-version-min=10.7 -isysroot $(SDK_LOCATION) -std=c++17 -DCC_TARGET_OS_MAC -lGDML -lCacao -LCacao/static -dynamiclib -lSystem -lstdc++ -g Cacao/include/Cacao.cpp -Wno-deprecated
main: dist
@echo "Building project..."
@$(CXX) $(CXX_INCL) $(CXX_FLAGS) $(CXX_EXTRA) main.cpp ConnectorNode.cpp SpacingController.cpp SpacingGui/*.cpp -o $(OUTPUT)
@echo "Finished"
asm:
@$(CXX) $(CXX_INCL) $(CXX_FLAGS) $(CXX_EXTRA) main.cpp ConnectorNode.cpp -S
dist:
mkdir dist
clean:
-@rm -rf dist 2>/dev/null || true
inject: # If you have osxinj installed use this.
sudo osxinj "Geometry Dash" $(OUTPUT)