# This file is part of tooldemo, a sample Tool plugin for Adobe Illustrator # Copyright (C) 2002-4 Toby Thain, toby@telegraphics.com.au # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # MPW Makefile EXEC7 = "tooldemo_ai7" EXEC10 = "tooldemo_ai10" FILETYPE = -t 'ARPI' -c 'ART5' REZFILES = version.r toolicon.r ::common:adobeplugin:PiPL-illustrator-fat.r OBJ_CLASSIC = ::common:adobeplugin:aipluginmain.cl.x ¶ tooldemo.cl.x tool.cl.x plot.cl.x suites.cl.x text_preATE.cl.x ¶ ::common:tt:dbg_mac.cl.x ::common:tt:str.cl.x OBJ_CARBON = ::common:adobeplugin:aipluginmain.ca.x ¶ tooldemo.ca.x tool.ca.x plot.ca.x suites.ca.x text_preATE.ca.x ¶ ::common:tt:dbg_mac.ca.x ::common:tt:str.ca.x tooldemo.cl.x ÄÄ version.h tooldemo.ca.x ÄÄ version.h plot.cl.x ÄÄ "common.h" suites.cl.x ÄÄ "common.h" text_ATE.cl.x ÄÄ "common.h" text_preATE.cl.x ÄÄ "common.h" tool.cl.x ÄÄ "common.h" tooldemo.cl.x ÄÄ "common.h" plot.ca.x ÄÄ "common.h" suites.ca.x ÄÄ "common.h" text_ATE.ca.x ÄÄ "common.h" text_preATE.ca.x ÄÄ "common.h" tool.ca.x ÄÄ "common.h" tooldemo.ca.x ÄÄ "common.h" # where the Illustrator API header files are located AI7API = {AI7}'ADM Headers:',{AI7}'Adobe Illustrator Headers:',{AI7}'C++ Wrapper Classes:',{AI7}'General Headers:',{AI7}'Legacy Headers:',{AI7}'PICA SP Headers:',{AI7}'Undocumented Headers:' AI7 = '::Illustrator70.SDK:AIPluginAPI:' AI10 = '::Adobe Illustrator 10 SDK:IllustratorAPI:' AI10API = {AI10}ADM:,{AI10}ADM:Legacy:,{AI10}General:,{AI10}Illustrator:,{AI10}Legacy:v7:,{AI10}PICA_SP: ## note it's not possible to build this project for 68K (using MPW) ## because it uses global variables (and needs stdio, which also uses global variables). ## Under MPW there's no means of using an alternative globals index than A5, ## and we can't use A5, because of the Illustrator callbacks made by the code resource. ## (With CodeWarrior, code resources can use A4 as globals index register, ## and there's a version of the CodeWarrior libraries which supports this.) tooldemo Ä {EXEC7} {EXEC10} files -x brtc {EXEC7} {EXEC10} COPT = -d MAC_ENV -d ISTOOL -proto strict -i :,::common:tt:,::common:adobeplugin: -tb on -w 17,2,35 .cl.x Ä .c mrc {depdir}{default}.c -o {targ} {copt} -i {AI7API} -align mac68k .ca.x Ä .c mrc {depdir}{default}.c -o {targ} {copt} -i {AI10API} -d TARGET_CARBON LIBS_CLASSIC = ¶ "{SharedLibraries}InterfaceLib" ¶ "{SharedLibraries}StdCLib" ¶ "{SharedLibraries}MathLib" ¶ "{PPCLibraries}StdCRuntime.o" ¶ "{PPCLibraries}PPCCRuntime.o" ¶ "{PPCLibraries}PPCToolLibs.o" ¶ "{PPCLibraries}"CarbonAccessors.o LIBS_CARBON = ¶ "{SharedLibraries}CarbonLib" ¶ "{SharedLibraries}StdCLib" ¶ "{PPCLibraries}PPCCRuntime.o" {EXEC7} ÄÄ {OBJ_CLASSIC} PPCLink -o {Targ} {FILETYPE} -m main {OBJ_CLASSIC} {LIBS_CLASSIC} {EXEC10} ÄÄ {OBJ_CARBON} PPCLink -o {Targ} {FILETYPE} -m main {OBJ_CARBON} {LIBS_CARBON} -d {EXEC7} ÄÄ {REZFILES} version.h Rez -o {Targ} {FILETYPE} -a -s : -d SystemSevenOrLater=1 {REZFILES} {EXEC10} ÄÄ {REZFILES} version.h Rez -o {Targ} {FILETYPE} -a -s : -d SystemSevenOrLater=1 {REZFILES}