1999-03-07 20:56:03 +08:00
|
|
|
## Makefile for building gimp modules with Microsoft C
|
|
|
|
## Use: nmake -f makefile.msc
|
|
|
|
|
|
|
|
# Change this to wherever you install the gimp.
|
|
|
|
GIMP = D:\gimp
|
|
|
|
BIN = $(GIMP)\modules
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
|
|
|
|
1999-07-03 16:27:30 +08:00
|
|
|
# cl -? describes the options
|
|
|
|
CC = cl -G5 -GF -Ox -W3 -MD -nologo
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
LDFLAGS = /link /machine:ix86
|
|
|
|
INSTALL = copy
|
|
|
|
|
|
|
|
GIMP_VER = 1.1
|
|
|
|
GTK_VER = 1.3
|
1999-05-29 09:38:58 +08:00
|
|
|
GLIB_VER = 1.3
|
1999-03-07 20:56:03 +08:00
|
|
|
|
1999-05-29 09:38:58 +08:00
|
|
|
GLIB = ..\..\glib
|
1999-03-07 20:56:03 +08:00
|
|
|
GMODULE = $(GLIB)\gmodule
|
1999-05-29 09:38:58 +08:00
|
|
|
GTK = ..\..\gtk+
|
1999-03-07 20:56:03 +08:00
|
|
|
|
1999-05-29 09:38:58 +08:00
|
|
|
CFLAGS = -DHAVE_CONFIG_H -DMODULE_COMPILATION -I. -I.. -I$(GLIB) -I$(GMODULE) -I$(GTK)\gdk\win32 -I$(GTK)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
1999-07-03 16:27:30 +08:00
|
|
|
MODULES = \
|
|
|
|
colorsel_gtk.dll \
|
1999-03-07 20:56:03 +08:00
|
|
|
colorsel_triangle.dll
|
|
|
|
|
|
|
|
|
|
|
|
all : \
|
|
|
|
$(MODULES)
|
|
|
|
|
|
|
|
install : all
|
|
|
|
$(INSTALL) colorsel_gtk.dll $(BIN)
|
|
|
|
$(INSTALL) colorsel_triangle.dll $(BIN)
|
|
|
|
|
|
|
|
..\config.h : ..\config.h.win32
|
|
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
|
|
|
|
colorsel_gtk.dll : colorsel_gtk.obj module.def
|
|
|
|
$(CC) $(CFLAGS) -LD -Fecolorsel_gtk.dll colorsel_gtk.obj $(LDFLAGS) ..\app\gimp.lib $(GTK)\gtk\gtk-$(GTK_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib $(GLIB)\glib-$(GLIB_VER).lib /def:module.def
|
|
|
|
|
|
|
|
colorsel_triangle.dll : colorsel_triangle.obj module.def
|
|
|
|
$(CC) $(CFLAGS) -LD -Fecolorsel_triangle.dll colorsel_triangle.obj $(LDFLAGS) ..\app\gimp.lib $(GTK)\gtk\gtk-$(GTK_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib $(GLIB)\glib-$(GLIB_VER).lib /def:module.def
|
|
|
|
|
|
|
|
# General rule for building
|
|
|
|
.c.obj:
|
1999-07-03 16:27:30 +08:00
|
|
|
$(CC) $(CFLAGS) -GD -c $<
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
del *.exe
|
|
|
|
del *.lib
|
|
|
|
del *.obj
|
|
|
|
del *.exp
|
|
|
|
del *.err
|
|
|
|
del *.map
|
|
|
|
del *.sym
|
|
|
|
del *.pdb
|
|
|
|
del *.ilk
|