1999-07-03 16:27:30 +08:00
|
|
|
## Makefile for building gimp.exe with gcc
|
|
|
|
## Use: make -f makefile.cygwin
|
|
|
|
|
|
|
|
# Change this to wherever you want to install gimp.exe.
|
|
|
|
BIN = /gimp/bin
|
|
|
|
|
|
|
|
OPTIMIZE = -g -O
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
|
|
|
|
Update gcc instructions. Remove warning about gettext being GPL, as the
* README.win32: Update gcc instructions. Remove warning about
gettext being GPL, as the GIMP is GPL, too, of course, and it
thus doesn't matter.
* user_install.bat: Rename the template user gtkrc to gtkrc_user,
to reduce user confusion.
* app/main.c: Small change for gcc on Win32 compilation.
* */makefile.cygwin
* app/module_db.c: With newest gcc-2.95 -fnative-struct on Win32,
no need to have differently named DLLs (including modules) for
(built by) gcc and MSVC.
* app/module_db.c: Use g_strdup_printf() instead of
strlen(), g_malloc() and g_snprintf()
* libgimp/Makefile.am: No need to distribute gimpfeatures.h.win32,
the suitable gimpfeatures.h is built when making the dist.
* libgimp/gimpfeatures.h.win32: Removed.
* libgimp/makefile.cygwin
* libgimp/makefile.msc: Remove gimpfeatures.h.win32.
* libgimp/gimp.h: Win32 startup code changed a bit.
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Add the winsnap unofficial plug-in.
* plug-ins/common/animationplay.c
* plug-ins/common/gz.c: (Win32) Hack aroung WinMain getting
clashing declarations because these guys include gdkx.h (which
includes windows.h), and gimp.h also declares WinMain on its own.
1999-07-22 03:52:20 +08:00
|
|
|
CC = gcc -mno-cygwin -mpentium -fnative-struct
|
1999-07-03 16:27:30 +08:00
|
|
|
|
|
|
|
CP = cp
|
|
|
|
LD = ld
|
|
|
|
DLLTOOL = dlltool
|
|
|
|
INSTALL = install
|
|
|
|
|
|
|
|
GIMP_VER = 1.1
|
|
|
|
GTK_VER = 1.3
|
|
|
|
GLIB_VER = 1.3
|
|
|
|
|
|
|
|
GTK = ../../gtk+
|
|
|
|
GLIB = ../../glib
|
|
|
|
GMODULE = $(GLIB)/gmodule
|
1999-08-16 12:59:48 +08:00
|
|
|
INTL = ../../intl
|
1999-07-03 16:27:30 +08:00
|
|
|
|
1999-08-16 12:59:48 +08:00
|
|
|
CFLAGS = $(OPTIMIZE) -DREGEX_MALLOC -DHAVE_CONFIG_H -I. -I.. -I$(GLIB) -I$(GMODULE) -I$(GTK)/gdk/win32 -I$(GTK) -I$(INTL)
|
1999-07-03 16:27:30 +08:00
|
|
|
|
1999-08-23 03:02:52 +08:00
|
|
|
# GCG = ../tools/gcg/gcg -I. -I../tools/gcg/gh
|
1999-07-03 16:27:30 +08:00
|
|
|
|
|
|
|
all : \
|
|
|
|
../config.h \
|
|
|
|
libgimpim.a \
|
|
|
|
colormap_dialog.c \
|
|
|
|
gimp.exe
|
|
|
|
|
|
|
|
install : gimp.exe
|
|
|
|
$(INSTALL) gimp.exe $(BIN)
|
|
|
|
|
|
|
|
../config.h : ../config.h.win32
|
|
|
|
$(CP) ../config.h.win32 ../config.h
|
|
|
|
|
|
|
|
gimpim_OBJECTS = \
|
|
|
|
gimpdrawable.o \
|
|
|
|
gimpimage.o \
|
|
|
|
gimpobject.o \
|
|
|
|
gimppreviewcache.o\
|
|
|
|
gimpset.o \
|
|
|
|
gimpsignal.o
|
|
|
|
|
|
|
|
libgimpim.a : $(gimpim_OBJECTS)
|
|
|
|
ar cr libgimpim.a $(gimpim_OBJECTS)
|
|
|
|
|
|
|
|
gimp_OBJECTS = \
|
|
|
|
about_dialog.o \
|
|
|
|
actionarea.o \
|
|
|
|
airbrush.o \
|
|
|
|
app_procs.o \
|
|
|
|
asupsample.o \
|
|
|
|
batch.o \
|
|
|
|
bezier_select.o \
|
|
|
|
blend.o \
|
|
|
|
blob.o \
|
|
|
|
boundary.o \
|
|
|
|
brightness_contrast.o \
|
|
|
|
brush_edit.o \
|
1999-08-13 06:08:19 +08:00
|
|
|
brush_scale.o \
|
1999-07-03 16:27:30 +08:00
|
|
|
brush_select.o \
|
|
|
|
brush_select_cmds.o \
|
|
|
|
brushes_cmds.o \
|
|
|
|
bucket_fill.o \
|
|
|
|
buildmenu.o \
|
|
|
|
by_color_select.o \
|
|
|
|
channel.o \
|
|
|
|
channel_cmds.o \
|
|
|
|
channels_dialog.o \
|
|
|
|
channel_ops.o \
|
|
|
|
channel_ops_cmds.o \
|
|
|
|
clone.o \
|
|
|
|
color_area.o \
|
|
|
|
color_balance.o \
|
|
|
|
color_cmds.o \
|
|
|
|
color_notebook.o \
|
|
|
|
color_panel.o \
|
|
|
|
color_picker.o \
|
|
|
|
color_select.o \
|
|
|
|
color_transfer.o \
|
|
|
|
colormaps.o \
|
|
|
|
colormap_dialog.o \
|
|
|
|
commands.o \
|
|
|
|
context_manager.o \
|
|
|
|
convert.o \
|
|
|
|
convert_cmds.o \
|
|
|
|
convolve.o \
|
|
|
|
crop.o \
|
|
|
|
cursorutil.o \
|
|
|
|
curves.o \
|
|
|
|
datafiles.o \
|
|
|
|
desaturate.o \
|
|
|
|
devices.o \
|
|
|
|
dialog_handler.o \
|
|
|
|
disp_callbacks.o \
|
|
|
|
docindex.o \
|
|
|
|
docindexif.o \
|
|
|
|
dodgeburn.o \
|
|
|
|
draw_core.o \
|
|
|
|
drawable.o \
|
|
|
|
drawable_cmds.o \
|
|
|
|
edit_cmds.o \
|
|
|
|
edit_selection.o \
|
|
|
|
ellipse_select.o \
|
|
|
|
eraser.o \
|
|
|
|
errorconsole.o \
|
|
|
|
errors.o \
|
|
|
|
equalize.o \
|
|
|
|
fileops.o \
|
|
|
|
fileops_cmds.o \
|
|
|
|
flip_tool.o \
|
|
|
|
floating_sel.o \
|
|
|
|
floating_sel_cmds.o \
|
|
|
|
file_new_dialog.o \
|
|
|
|
free_select.o \
|
|
|
|
fuzzy_select.o \
|
|
|
|
gdisplay.o \
|
|
|
|
gdisplay_cmds.o \
|
1999-07-30 06:07:17 +08:00
|
|
|
gdisplay_color.o \
|
1999-09-01 01:03:34 +08:00
|
|
|
gdisplay_color_ui.o \
|
1999-07-03 16:27:30 +08:00
|
|
|
gdisplay_ops.o \
|
|
|
|
general.o \
|
|
|
|
gimage.o \
|
|
|
|
gimage_cmds.o \
|
|
|
|
gimage_mask.o \
|
|
|
|
gimage_mask_cmds.o \
|
|
|
|
gimpbrush.o \
|
|
|
|
gimpbrushgenerated.o \
|
|
|
|
gimpbrushlist.o \
|
1999-08-24 13:30:14 +08:00
|
|
|
gimpbrushpipe.o \
|
1999-08-27 05:33:58 +08:00
|
|
|
gimpbrushpreview.o \
|
1999-07-03 16:27:30 +08:00
|
|
|
gimpcontext.o \
|
1999-08-22 03:00:41 +08:00
|
|
|
gimpdnd.o \
|
1999-07-03 16:27:30 +08:00
|
|
|
gimphistogram.o \
|
|
|
|
gimplist.o \
|
|
|
|
gimplut.o \
|
|
|
|
gimpparasite.o \
|
1999-08-27 05:33:58 +08:00
|
|
|
gimppatternpreview.o \
|
1999-07-03 16:27:30 +08:00
|
|
|
gimpprogress.o \
|
|
|
|
gimprc.o \
|
|
|
|
gimprc_cmds.o \
|
|
|
|
gimpunit.o \
|
|
|
|
global_edit.o \
|
|
|
|
gradient.o \
|
|
|
|
gradient_cmds.o \
|
|
|
|
gradient_select.o \
|
|
|
|
gradient_select_cmds.o \
|
|
|
|
guides_cmds.o \
|
|
|
|
gximage.o \
|
|
|
|
histogramwidget.o \
|
|
|
|
histogram_tool.o \
|
|
|
|
hue_saturation.o \
|
|
|
|
image_map.o \
|
1999-08-27 05:33:58 +08:00
|
|
|
image_new.o \
|
1999-07-03 16:27:30 +08:00
|
|
|
image_render.o \
|
|
|
|
indicator_area.o \
|
|
|
|
info_dialog.o \
|
|
|
|
info_window.o \
|
|
|
|
ink.o \
|
|
|
|
install.o \
|
|
|
|
interface.o \
|
|
|
|
interface_cmds.o \
|
|
|
|
internal_procs.o \
|
|
|
|
invert.o \
|
|
|
|
iscissors.o \
|
|
|
|
layer.o \
|
|
|
|
layer_cmds.o \
|
|
|
|
layer_select.o \
|
|
|
|
layers_dialog.o \
|
|
|
|
lc_dialog.o \
|
|
|
|
levels.o \
|
|
|
|
lut_funcs.o \
|
|
|
|
magnify.o \
|
|
|
|
main.o \
|
1999-08-16 12:59:48 +08:00
|
|
|
measure.o \
|
1999-07-03 16:27:30 +08:00
|
|
|
menus.o \
|
|
|
|
misc_cmds.o \
|
|
|
|
module_db.o \
|
|
|
|
move.o \
|
1999-08-16 12:59:48 +08:00
|
|
|
nav_window.o \
|
1999-07-03 16:27:30 +08:00
|
|
|
ops_buttons.o \
|
|
|
|
palette.o \
|
|
|
|
palette_cmds.o \
|
|
|
|
palette_select.o \
|
|
|
|
paint_core.o \
|
|
|
|
paint_funcs.o \
|
|
|
|
paintbrush.o \
|
|
|
|
parasite_cmds.o \
|
|
|
|
parasitelist.o \
|
|
|
|
paths_cmds.o \
|
|
|
|
paths_dialog.o \
|
|
|
|
pattern_select.o \
|
|
|
|
pattern_select_cmds.o \
|
|
|
|
patterns.o \
|
|
|
|
patterns_cmds.o \
|
|
|
|
pencil.o \
|
|
|
|
perspective_tool.o \
|
|
|
|
pixel_processor.o \
|
|
|
|
pixel_region.o \
|
|
|
|
plug_in.o \
|
|
|
|
plug_in_cmds.o \
|
|
|
|
posterize.o \
|
|
|
|
preferences_dialog.o \
|
|
|
|
procedural_db.o \
|
|
|
|
procedural_db_cmds.o \
|
1999-07-15 00:02:32 +08:00
|
|
|
qmask.o \
|
1999-07-03 16:27:30 +08:00
|
|
|
rect_select.o \
|
|
|
|
regex.o \
|
|
|
|
resize.o \
|
|
|
|
rotate_tool.o \
|
|
|
|
scale.o \
|
|
|
|
scale_tool.o \
|
|
|
|
scroll.o \
|
|
|
|
selection.o \
|
|
|
|
session.o \
|
|
|
|
shear_tool.o \
|
|
|
|
smudge.o \
|
|
|
|
temp_buf.o \
|
|
|
|
text_tool.o \
|
|
|
|
text_tool_cmds.o \
|
|
|
|
threshold.o \
|
|
|
|
tile.o \
|
|
|
|
tile_cache.o \
|
|
|
|
tile_manager.o \
|
|
|
|
tile_swap.o \
|
|
|
|
tips_dialog.o \
|
|
|
|
tool_options.o \
|
|
|
|
tools.o \
|
|
|
|
tools_cmds.o \
|
|
|
|
transform_core.o \
|
|
|
|
transform_tool.o \
|
|
|
|
undo.o \
|
|
|
|
undo_cmds.o \
|
|
|
|
unit_cmds.o \
|
|
|
|
vector2d.o \
|
|
|
|
xcf.o
|
|
|
|
|
1999-08-23 03:02:52 +08:00
|
|
|
# .SUFFIXES: .gc
|
1999-07-03 16:27:30 +08:00
|
|
|
|
1999-08-23 03:02:52 +08:00
|
|
|
# .gc.c:
|
|
|
|
# $(GCG) -o $@ $<
|
1999-07-03 16:27:30 +08:00
|
|
|
|
|
|
|
gimpres.o : gimp.rc wilber.ico
|
|
|
|
windres gimp.rc gimpres.o
|
|
|
|
|
1999-07-29 08:23:51 +08:00
|
|
|
gimp.def: gimp.sym
|
|
|
|
echo EXPORTS >$@
|
|
|
|
cat $< >>$@
|
|
|
|
|
1999-07-03 16:27:30 +08:00
|
|
|
gimp.exe : ../config.h $(gimp_OBJECTS) libgimpim.a gimp.def gimpres.o
|
|
|
|
# This is sickening.
|
1999-08-16 12:59:48 +08:00
|
|
|
$(CC) $(CFLAGS) -Wl,--base-file,gimp.base -mwindows -o gimp.exe $(gimp_OBJECTS) -L . -lgimpim -L ../libgimp -lgimpi -L $(GTK)/gtk -lgtk-$(GTK_VER) -L $(GTK)/gdk/win32 -lgdk-$(GTK_VER) -L $(INTL) -lgnu-intl -L $(GLIB) -lglib-$(GLIB_VER) -lgmodule-$(GLIB_VER) gimpres.o -lgdi32 -luser32
|
1999-07-03 16:27:30 +08:00
|
|
|
$(DLLTOOL) --base-file gimp.base --input-def gimp.def --output-exp gimp.exp
|
1999-08-16 12:59:48 +08:00
|
|
|
$(CC) $(CFLAGS) -Wl,--base-file,gimp.base,gimp.exp -mwindows -o gimp.exe $(gimp_OBJECTS) -L . -lgimpim -L ../libgimp -lgimpi -L $(GTK)/gtk -lgtk-$(GTK_VER) -L $(GTK)/gdk/win32 -lgdk-$(GTK_VER) -L $(INTL) -lgnu-intl -L $(GLIB) -lglib-$(GLIB_VER) -lgmodule-$(GLIB_VER) gimpres.o -lgdi32 -luser32
|
1999-07-03 16:27:30 +08:00
|
|
|
$(DLLTOOL) --base-file gimp.base --input-def gimp.def --output-exp gimp.exp
|
Implement the selection of brush based on cursor direction, pressure,
1999-08-28 Tor Lillqvist <tml@iki.fi>
* app/gimpbrushpipe.c: Implement the selection of brush based on
cursor direction, pressure, tilt, or a random value. (Hmm, forgot
velocity, later.) (In addition to just incrementally stepping.)
Read the brush pipe parameters from the gih file's second line.
There is no way to tune the parameters in the GIMP, they must
currently be set when saving the gih file (in the gpb plug-in).
* app/gimpbrushpipe.h
* app/gimpbrushpipeP.h: Move the PipeSelectModes enum to the
"private" header. Add a stride array to GimpBrushPipe to make
indexing easier.
* plug-ins/common/gpb.c: Add selection mode fields to the dialog.
Attach the pipe parameters entered as a parasite, too.
* docs/parasites.txt
* plug-ins/common/psp.c: Use "placement", not "spacing" (which
means another thing).
1999-08-28 09:14:42 +08:00
|
|
|
$(CC) $(CFLAGS) -Wl,gimp.exp -mwindows -o gimp.exe $(gimp_OBJECTS) -L. -lgimpim -L ../libgimp -lgimpi -L $(GTK)/gtk -lgtk-$(GTK_VER) -L $(GTK)/gdk/win32 -lgdk-$(GTK_VER) -L $(INTL) -lgnu-intl -L $(GLIB) -lglib-$(GLIB_VER) -lgmodule-$(GLIB_VER) gimpres.o -lgdi32 -luser32
|
1999-07-03 16:27:30 +08:00
|
|
|
$(DLLTOOL) --dllname gimp.exe gimp.def --output-lib libgimp.a $(gimp_OBJECTS)
|
|
|
|
|
1999-08-16 12:59:48 +08:00
|
|
|
.SUFFIXES: .c .o .i
|
|
|
|
|
1999-07-03 16:27:30 +08:00
|
|
|
# General rule for building $(gimp_OBJECTS)
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
1999-08-16 12:59:48 +08:00
|
|
|
.c.i:
|
|
|
|
$(CC) $(CFLAGS) -E $< >$@
|
|
|
|
|
1999-07-03 16:27:30 +08:00
|
|
|
clean:
|
|
|
|
-rm *.exe *.a *.o *.base *.exp
|