From 0b8b2c423e0ae4da2343b06df3f6491757ab3342 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Mon, 8 Aug 2022 12:12:10 +0200 Subject: Mac cross-compile, thanks zig! --- makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'makefile') diff --git a/makefile b/makefile index ed5e648..c86d5af 100644 --- a/makefile +++ b/makefile @@ -28,7 +28,7 @@ a.out: $(OBJECTS) $(CXX) $(LIBDIR) $(CVERSION) $(CFLAGS) $(LIBS) $(OBJECTS) -o satscalc $(OBJECTS): obj/%.o : src/%.cpp - mkdir -p obj + mkdir -p $(OBJDIR) $(CXX) -g $(INCLUDE) $(CVERSION) $(CFLAGS) -c $< -o $@ windows: @@ -37,6 +37,9 @@ windows: windows32: zig c++ -target i386-windows-gnu src/*.cpp $(CVERSION) -g -gcodeview -o satscalc32.exe +mac: + zig c++ -target x86_64-macos-gnu src/*.cpp $(CVERSION) -g -gcodeview -o satscalc + clean: rm obj/*.o -- cgit v1.2.1