# This file is part of "5_6_5", a filter plugin for Adobe Photoshop # Copyright (C) 2002-6 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 # Borland C++ 5.5 Makefile # define location of Photoshop SDK headers PSAPI = "c:\program files\adobe\adobe photoshop 6.0 sdk\photoshopapi" # BCC32 C compiler flags CFLAGS = -O2 -DWIN_ENV -DMSWindows=1 \ -I$(PSAPI)\Pica_sp -I$(PSAPI)\Photoshop -I$(PSAPI)\General \ -I..\common\adobeplugin -I..\common\tt # BRCC32 resource compiler flags RFLAGS = -i$(PSAPI)\Photoshop # Borland MAKE's implicit rule fails to find prerequisites in other dirs; # this one works better for our purposes: .c.obj : # -j5 : stop after 5 errors # -u- : do not generate underscores in exported symbol names $(CC) $(CFLAGS) -j5 -u- -c -o$@ $< OBJ = main.obj ..\common\adobeplugin\dllmain.obj RES = PiPL.res EXEC = 12bits.8bf all : $(EXEC) $(RES) : PiPL.rc brcc32 -fo$@ $< $(EXEC) : $(OBJ) $(RES) ## the simple method of using bcc32 doesn't seem to work :( #bcc32 -WD -e$@ $(OBJ) ## anyway ilink32 can make a smaller DLL by omitting exception support (c0d32x) ilink32 /Tpd /Gn /Lc:\borland\bcc55\lib c0d32x $(OBJ) , $@ , , import32 cw32 , , $(RES) dir $@