#!/bin/bash # Objective-C Build Script SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)" cd "$SCRIPT_DIR" echo "=== Objective-C Build ===" echo "" # Kompilera Objective-C-programmet med GMP gcc -framework Foundation -I/opt/homebrew/opt/gmp/include -L/opt/homebrew/opt/gmp/lib -o bin/print_hej src/print_hej.m -lgmp if [ $? -eq 0 ]; then echo "✓ Kompilering lyckades!" echo "Binär: bin/print_hej" echo "" echo "För att köra:" echo " ./bin/print_hej [decimaler]" else echo "✗ Kompilering misslyckades!" exit 1 fi