# This file is part of pathtotext, a Filter plugin for Adobe Illustrator # Copyright (C) 2005-9 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 # NMAKE Makefile # builds Win32 DLL plugin with MS VS compiler, resource compiler, and linker # by Toby Thain # ---------- variables & flags ---------- EXEC = pathtotext # where to find v10 or later SDK #API = ..\Adobe Illustrator 10 SDK\IllustratorAPI API = ..\Adobe Illustrator CS2 SDK\illustratorapi #API = ..\Adobe Illustrator CS4 SDK\illustratorapi APIDIRS = /I"$(API)"\adm \ /I"$(API)"\illustrator \ /I"$(API)"\pica_sp \ /I"$(API)"\ate \ /I"$(API)"\General \ /I"$(API)"\Illustrator\legacy \ /I"$(API)"\Legacy\v7 # where to find AI7 SDK API7 = ..\Illustrator70.SDK\AIPluginAPI # uncomment this if using AI7 SDK: #APIDIRS = /I"$(API7)\ADM Headers" /I"$(API7)\Adobe Illustrator Headers" \ # /I"$(API7)\General Headers" \ # /I"$(API7)\PICA SP Headers" /I"$(API7)\Undocumented Headers" # where to find PS SDK PSAPI = ..\PhotoshopAPI # /Zp4 - 4-byte struct member alignment (recommended by Getting Started guide) # /TP - compile all as C++ # /EHsc - C++ exceptions only; assume extern "C" functions do not throw C++ exceptions # http://msdn.microsoft.com/en-us/library/1deeycx5(VS.80).aspx CFLAGS = /Zp4 /EHsc /TP /O2 \ /DISFILTER /DWIN_ENV /DWIN32 \ $(APIDIRS) \ /I"$(PSAPI)"\Photoshop \ /I..\common\adobeplugin /I..\common\tt LDFLAGS = /LD /MT user32.lib gdi32.lib comdlg32.lib # ---------- source & object files ---------- # list of source files OBJ = ..\common\adobeplugin\aipluginmain.obj \ main.obj pipl.res \ ..\common\tt\choosefile_win.obj ..\common\tt\file_compat_win.obj \ ..\common\tt\str.obj ..\common\tt\dbg_win.obj # ---------- executables ---------- # Win32 plugin DLL to build PLUGIN = $(EXEC).aip # ---------- targets ---------- all : $(PLUGIN) clean : -del *.obj *.res $(EXEC).exp $(EXEC).lib $(PLUGIN) # ---------- compile rules ---------- # compile Windows 'PIPL' resource (including version info) pipl.res : PiPL.rc version.h main.obj : common.h version.h # ---------- link rules ---------- $(PLUGIN) : $(OBJ) $(CC) /Fe$@ $(**F) $(LDFLAGS) # --------------------