# This file is part of patharea, a Filter plugin for Adobe Illustrator # Copyright (C) 1995-2006 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 = patharea # where to find CS2 SDK APICS2 = ..\aics2sdkw\IllustratorAPI # where to find AI7 SDK API7 = ..\Illustrator70.SDK\AIPluginAPI CFLAGS = /DISFILTER /DWIN_ENV /O2 \ /I"$(API7)\ADM Headers" /I"$(API7)\Adobe Illustrator Headers" \ /I"$(API7)\General Headers" /I"$(API7)\Legacy Headers" \ /I"$(API7)\PICA SP Headers" /I"$(API7)\Undocumented Headers" \ /I..\common\adobeplugin /I..\common\tt /I$(PSAPI)\Photoshop # ---------- source & object files ---------- # list of source files OBJ = ..\common\adobeplugin\aipluginmain.obj \ main.obj pipl.res \ ..\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) link /dll /out:$(PLUGIN) /subsystem:windows /export:PluginMain $(**F) user32.lib gdi32.lib # --------------------