# This file is part of "5_6_5", a filter plugin for Adobe Photoshop # Copyright (C) 2004-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 # Tested with Visual C++ 2008 Express Edition # http://www.microsoft.com/express/vc/ # and Windows SDK for Windows Server 2008 # http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en # Set environment variables as follows (fix paths for your Express & SDK installations) # SET INCLUDE=H:\Microsoft Visual Studio 9.0\VC\include;C:\Program Files\Microsoft SDKs\Windows\v6.1\Include # SET LIB=H:\Microsoft Visual Studio 9.0\VC\lib;C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib # SET PATH=C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin;H:\Microsoft Visual Studio 9.0\Common7\IDE;H:\Microsoft Visual Studio 9.0\VC\bin # and build using: # > nmake /f nmake.mak # or on WINE, # > wine nmake /f nmake.mak # define location of Photoshop SDK headers PSAPI = "c:\Adobe Photoshop CS4 SDK\photoshopapi" # C compiler flags CFLAGS = -O2 -DWIN32 -DWIN_ENV -DMSWindows=1 \ -I$(PSAPI)\Pica_sp -I$(PSAPI)\Photoshop -I$(PSAPI)\General \ -I..\common\adobeplugin -I..\common\tt # Note since VS8 it is necessary to link with multithreaded standard lib, using /MT LDFLAGS = /LD /MT user32.lib # resource compiler flags RFLAGS = -i$(PSAPI)\Photoshop COMMON_OBJ = ui_win.obj ..\common\adobeplugin\dllmain.obj ..\common\tt\dbg_win.obj all : 5_6_5.8bf 5_5_5.8bf 6_6_6.8bf 7_7_7.8bf clean : ; -del *.obj *.8bf *.lib *.res 5_6_5.exp 5_5_5.exp 6_6_6.exp 7_7_7.exp main_565.obj : main.c ; $(CC) $(CFLAGS) $** /c /Fo$@ /DRBITS=5 /DGBITS=6 /DBBITS=5 main_555.obj : main.c ; $(CC) $(CFLAGS) $** /c /Fo$@ /DRBITS=5 /DGBITS=5 /DBBITS=5 main_666.obj : main.c ; $(CC) $(CFLAGS) $** /c /Fo$@ /DRBITS=6 /DGBITS=6 /DBBITS=6 main_777.obj : main.c ; $(CC) $(CFLAGS) $** /c /Fo$@ /DRBITS=7 /DGBITS=7 /DBBITS=7 5_6_5.8bf : main_565.obj PiPL_565.res $(COMMON_OBJ) $(CC) /Fe$@ $(**F) $(LDFLAGS) 5_5_5.8bf : main_555.obj PiPL_555.res $(COMMON_OBJ) $(CC) /Fe$@ $(**F) $(LDFLAGS) 6_6_6.8bf : main_666.obj PiPL_666.res $(COMMON_OBJ) $(CC) /Fe$@ $(**F) $(LDFLAGS) 7_7_7.8bf : main_777.obj PiPL_777.res $(COMMON_OBJ) $(CC) /Fe$@ $(**F) $(LDFLAGS)