diff --git a/pl/ostype/Darwin.pl b/pl/ostype/Darwin.pl new file mode 100644 index 0000000..c51b686 --- /dev/null +++ b/pl/ostype/Darwin.pl @@ -0,0 +1,5 @@ +# $Id$ +$shared = "-dynamiclib"; +use_backend("darwin"); + +1; diff --git a/pl/rules.pl b/pl/rules.pl index a334cad..2e24be2 100644 --- a/pl/rules.pl +++ b/pl/rules.pl @@ -15,6 +15,10 @@ if($backend eq "x11"){ add_libs("-lgdi32"); $gl_libs = "-lopengl32 -lglu32"; +}elsif($backend eq "darwin"){ + add_cflags("-DUSE_DARWIN"); + new_object("src/backend/mac/*.c"); + add_ldflags("-framework Carbon"); } if(param_get("stb-image")){