mirror of
https://github.com/Relintai/sfw.git
synced 2024-12-20 21:06:49 +01:00
16 lines
600 B
Bash
Executable File
16 lines
600 B
Bash
Executable File
|
|
export SDKROOT=$(xcrun --show-sdk-path)
|
|
|
|
export args="-std=c++14 -w -framework cocoa -framework iokit -framework CoreFoundation -framework CoreAudio -framework AudioToolbox "
|
|
|
|
clang++ $args -g -c sfw.cpp -o sfw.o
|
|
|
|
clang++ -w -framework cocoa -framework iokit -framework CoreFoundation -framework CoreAudio -framework AudioToolbox -g -c sfw_3rd.m -o sfw_3rd.o
|
|
|
|
clang++ $args -g -c game_scene.cpp -o game_scene.o
|
|
clang++ $args -g -c main.cpp -o main.o
|
|
|
|
# You might need to add -lpthread and/or -latomic depending on your compiler version
|
|
|
|
clang++ $args -g sfw.o sfw_3rd.o game_scene.o main.o -o game
|