diff options
author | San Jacobs | 2022-08-08 12:12:10 +0200 |
---|---|---|
committer | San Jacobs | 2022-08-08 12:12:10 +0200 |
commit | 0b8b2c423e0ae4da2343b06df3f6491757ab3342 (patch) | |
tree | 039b7e080ebbec28297833e3afcdd96c67cb3c65 | |
parent | 1f0d52aaddc9d39986724733db265d300bd8f6c8 (diff) | |
download | satscalc-0b8b2c423e0ae4da2343b06df3f6491757ab3342.tar.gz satscalc-0b8b2c423e0ae4da2343b06df3f6491757ab3342.tar.bz2 satscalc-0b8b2c423e0ae4da2343b06df3f6491757ab3342.zip |
Mac cross-compile, thanks zig!
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | makefile | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -6,5 +6,5 @@ satscalc satscalc.exe satscalc32.exe notes.txt -a.pdb +*.pdb remedy.rdbg @@ -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 |