# This file is part of MacPaint Format, a File Format plugin for Adobe Photoshop # Copyright (C) 2003-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 # mingw32 Makefile # by Toby Thain CC = i386-mingw32msvc-gcc DLLWRAP = i386-mingw32msvc-dllwrap WINDRES = i386-mingw32msvc-windres EXEC = MacPaintFormat.8bi DISTARCHIVE = dist/MacPaintFormat-win.zip all : $(EXEC) testpackbits : testpackbits.c packbits.c bufio.c ../common/tt/file_compat_unix.c gcc -o $@ $^ -I../common/tt -I../common/adobeplugin #PSAPI = "c:/program files/adobe/adobe photoshop 6.0 sdk/photoshopapi" PSAPI = ../PhotoshopAPI CFLAGS += -O2 -W -Wall -DWIN_ENV \ -I$(PSAPI)/Pica_sp -I$(PSAPI)/Photoshop -I$(PSAPI)/General \ -I../common/adobeplugin -I../common/tt OBJ = main.o read.o write.o packbits.o ui_win.o \ ../common/tt/bufio.o ../common/tt/str.o ../common/tt/ui_compat_win.o \ ../common/tt/file_compat_win.o ../common/tt/file_io.o \ ../common/tt/dbg_win.o ../common/adobeplugin/dllmain.o \ res.o ui_win.o : version.h res.o : PiPL.rc $(WINDRES) -i PiPL.rc -o $@ clean : rm -f $(OBJ) $(EXEC) $(DISTARCHIVE) dist : $(DISTARCHIVE) $(DISTARCHIVE) : $(EXEC) dist/README dist/COPYING zip -j -9 $@ $^ ls -l $@ $(EXEC) : exports.def $(OBJ) $(DLLWRAP) -o $@ -def exports.def $(OBJ) -mwindows -s ls -l $@