Skip to content

Commit

Permalink
Build macher as a fat binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Feb 11, 2021
1 parent 05c2767 commit b676b52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
CFLAGS=-arch x86_64 -arch arm64e

macher: append_data.o macher.h macher.c
gcc -o macher append_data.o macher.c
gcc ${CFLAGS} -o macher append_data.o macher.c

macher.h:
/usr/bin/env python3 make_header.py

append_data.o: append_data.c
gcc -c append_data.c
gcc ${CFLAGS} -c append_data.c

example/hello.zip: example/main.tcl
cd example; zip hello.zip main.tcl
Expand Down

0 comments on commit b676b52

Please sign in to comment.