aboutsummaryrefslogtreecommitdiff
path: root/pd/extra/choice/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pd/extra/choice/makefile')
-rw-r--r--pd/extra/choice/makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/pd/extra/choice/makefile b/pd/extra/choice/makefile
index 7345eed7..8ecb0dd4 100644
--- a/pd/extra/choice/makefile
+++ b/pd/extra/choice/makefile
@@ -75,8 +75,9 @@ LINUXINCLUDE = -I../../src
# ----------------------- Mac OSX -----------------------
pd_darwin: $(NAME).pd_darwin
+pd_imac: $(NAME).pd_imac
-.SUFFIXES: .pd_darwin
+.SUFFIXES: .pd_darwin .pd_imac
DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
@@ -86,6 +87,11 @@ DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
$(CC) -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o
rm -f $*.o
+.c.pd_imac:
+ $(CC) $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
+ $(CC) -bundle -undefined suppress -flat_namespace -o $*.pd_imac $*.o
+ rm -f $*.o
+
# ----------------------------------------------------------
clean: