2001-01-25 03:40:15 +08:00
|
|
|
## Makefile for building the GIMP DLLs and LIBs with Microsoft C.
|
|
|
|
## Use: nmake -f makefile.msc
|
|
|
|
|
|
|
|
# Change this to wherever you want to install the DLLs. This directory
|
|
|
|
# should be in your PATH. As these DLLs are for the GIMP and its plug-ins
|
|
|
|
# only, it probably is best to keep them in the GIMP's bin directory.
|
|
|
|
BIN = C:\install\gimp\bin
|
2001-02-07 09:16:18 +08:00
|
|
|
TOP = ..\..
|
2002-02-17 23:55:54 +08:00
|
|
|
!include $(TOP)\glib\build\win32\make.msc
|
2001-01-25 03:40:15 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
GIMP_VER = 1.3
|
2001-01-25 03:40:15 +08:00
|
|
|
|
|
|
|
# The name of the directory in your %HOME% where the GIMP's personal settings
|
|
|
|
# and stuff is saved.
|
|
|
|
GIMPDIR = _gimp$(GIMP_VER)
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
INCLUDES = -I..
|
|
|
|
# DEFINES = -DG_LOG_DOMAIN=\"LibGimpWidgets\"
|
2002-02-17 23:55:54 +08:00
|
|
|
DEPCFLAGS = \
|
|
|
|
-FImsvc_recommended_pragmas.h \
|
|
|
|
$(GLIB_CFLAGS) $(GTK2_CFLAGS) $(INTL_CFLAGS)
|
2002-12-01 22:53:17 +08:00
|
|
|
DEPLIBS = $(GLIB_LIBS) $(GTK2_LIBS) $(INTL_LIBS)
|
2001-01-25 03:40:15 +08:00
|
|
|
|
|
|
|
all : \
|
|
|
|
..\config.h \
|
2002-12-01 22:53:17 +08:00
|
|
|
gimpwidgetsmarshal.c \
|
2001-02-07 09:16:18 +08:00
|
|
|
gimpwidgets-$(GIMP_VER).dll
|
2001-01-25 03:40:15 +08:00
|
|
|
|
|
|
|
..\config.h : ..\config.h.win32
|
|
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
|
|
|
|
install : all
|
2001-02-07 09:16:18 +08:00
|
|
|
$(INSTALL) gimpmath-$(GIMP_VER).dll $(BIN)
|
2001-01-25 03:40:15 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
OBJECTS = \
|
2001-05-26 06:04:21 +08:00
|
|
|
gimpbutton.obj \
|
2001-01-25 03:40:15 +08:00
|
|
|
gimpchainbutton.obj \
|
2001-02-07 09:16:18 +08:00
|
|
|
gimpcolorarea.obj \
|
2002-09-07 06:25:19 +08:00
|
|
|
gimpcolorbutton.obj \
|
2002-12-01 22:53:17 +08:00
|
|
|
gimpcolordisplay.obj \
|
|
|
|
gimpcolornotebook.obj \
|
|
|
|
gimpcolorscale.obj \
|
|
|
|
gimpcolorscales.obj \
|
|
|
|
gimpcolorselect.obj \
|
|
|
|
gimpcolorselector.obj \
|
2001-01-25 03:40:15 +08:00
|
|
|
gimpdialog.obj \
|
|
|
|
gimpfileselection.obj \
|
2002-09-07 06:25:19 +08:00
|
|
|
gimphelpui.obj \
|
2003-03-04 02:14:31 +08:00
|
|
|
gimpmemsizeentry.obj \
|
2002-09-07 06:25:19 +08:00
|
|
|
gimpoffsetarea.obj \
|
2001-01-25 03:40:15 +08:00
|
|
|
gimppatheditor.obj \
|
2002-12-01 22:53:17 +08:00
|
|
|
gimppickbutton.obj \
|
2001-01-25 03:40:15 +08:00
|
|
|
gimppixmap.obj \
|
|
|
|
gimpquerybox.obj \
|
|
|
|
gimpsizeentry.obj \
|
2001-09-23 03:47:27 +08:00
|
|
|
gimpstock.obj \
|
2001-01-25 03:40:15 +08:00
|
|
|
gimpunitmenu.obj \
|
2002-09-07 06:25:19 +08:00
|
|
|
gimpwidgets.obj \
|
2003-05-25 01:00:03 +08:00
|
|
|
gimpwidgets-private.obj \
|
2002-09-07 06:25:19 +08:00
|
|
|
gimpwidgetsmarshal.obj \
|
2001-01-25 03:40:15 +08:00
|
|
|
|
2002-09-07 06:25:19 +08:00
|
|
|
|
2002-02-17 23:55:54 +08:00
|
|
|
gimpwidgetsmarshal.h : gimpwidgetsmarshal.list
|
|
|
|
$(GLIB)\gobject\glib-genmarshal --prefix=_gimp_widgets_marshal gimpwidgetsmarshal.list --header >gimpwidgetsmarshal.h
|
|
|
|
|
|
|
|
gimpwidgetsmarshal.c : gimpwidgetsmarshal.list gimpwidgetsmarshal.h
|
|
|
|
$(GLIB)\gobject\glib-genmarshal --prefix=_gimp_widgets_marshal gimpwidgetsmarshal.list --body >gimpwidgetsmarshal.c
|
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
# questionable dependency between libgimpui/libgimpwidgets
|
|
|
|
gimpunit.obj : ..\app\gimpunit.c
|
|
|
|
$(CC) $(CFLAGS) -GD -c ..\app\gimpunit.c
|
2001-01-25 03:40:15 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
gimpwidgets-$(GIMP_VER).dll : $(OBJECTS) gimpwidgets.def
|
|
|
|
$(CC) $(CFLAGS) -LD -Fegimpwidgets-$(GIMP_VER).dll $(OBJECTS) \
|
|
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
|
|
$(DEPLIBS) $(LDFLAGS) user32.lib /def:gimpwidgets.def
|
2001-01-25 03:40:15 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
# ..\app\gimp.lib \
|
|
|
|
# ..\libgimp\gimpui-$(GIMP_VER).lib ..\libgimp\gimp-$(GIMP_VER).lib \
|