1999-03-07 20:56:03 +08:00
|
|
|
## Makefile for building gimp modules with Microsoft C
|
|
|
|
## Use: nmake -f makefile.msc
|
|
|
|
|
2001-07-29 03:40:07 +08:00
|
|
|
TOP = ..\..
|
|
|
|
|
1999-03-07 20:56:03 +08:00
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
|
|
|
|
2002-03-28 08:10:56 +08:00
|
|
|
!INCLUDE $(TOP)\glib\build\win32\make.msc
|
2004-02-08 07:01:33 +08:00
|
|
|
!INCLUDE ..\gimpdefs.msc
|
1999-03-07 20:56:03 +08:00
|
|
|
|
2002-03-28 08:10:56 +08:00
|
|
|
INCLUDES = \
|
|
|
|
-FImsvc_recommended_pragmas.h \
|
|
|
|
-I..
|
|
|
|
|
2001-07-29 03:40:07 +08:00
|
|
|
DEFINES = -DHAVE_CONFIG_H -DMODULE_COMPILATION
|
2002-03-28 08:10:56 +08:00
|
|
|
DEPCFLAGS = $(INTL_CFLAGS) $(GLIB_CFLAGS) $(GTK2_CFLAGS)
|
|
|
|
DEPLIBS = $(INTL_LIBS) $(GLIB_LIBS) $(GTK2_LIBS)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
2000-05-05 02:41:22 +08:00
|
|
|
BIN = $(GIMP)\modules
|
|
|
|
|
1999-07-03 16:27:30 +08:00
|
|
|
MODULES = \
|
2008-10-04 03:27:54 +08:00
|
|
|
color-selector-water-$(GIMP_VER).dll \
|
|
|
|
color-selector-wheel-$(GIMP_VER).dll \
|
|
|
|
color-selector-cmyk-$(GIMP_VER).dll \
|
|
|
|
display-filter-color-blind-$(GIMP_VER).dll \
|
|
|
|
display-filter-gamma-$(GIMP_VER).dll \
|
|
|
|
display-filter-high-contrast-$(GIMP_VER).dll \
|
2006-05-14 01:05:15 +08:00
|
|
|
!IFDEF LCMS_CFLAGS
|
2008-10-04 03:27:54 +08:00
|
|
|
display-filter-lcms-$(GIMP_VER).dll \
|
|
|
|
display-filter-proof-$(GIMP_VER).dll \
|
2006-05-14 01:05:15 +08:00
|
|
|
!ENDIF
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
all : \
|
|
|
|
$(MODULES)
|
|
|
|
|
|
|
|
install : all
|
1999-07-15 00:02:32 +08:00
|
|
|
for %m in ($(MODULES)) do copy %m $(BIN)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
..\config.h : ..\config.h.win32
|
|
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
|
2008-10-04 03:27:54 +08:00
|
|
|
color-selector-triangle-$(GIMP_VER).dll : color-selector-triangle.obj
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ color-selector-triangle.obj $(LDFLAGS) \
|
2001-07-29 03:40:07 +08:00
|
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
2003-01-01 21:33:27 +08:00
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
|
|
|
..\libgimpmodule\gimpmodule-$(GIMP_VER).lib \
|
|
|
|
$(DEPLIBS)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
2008-10-04 03:27:54 +08:00
|
|
|
color-selector-water-$(GIMP_VER).dll : color-selector-water.obj
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ color-selector-water.obj $(LDFLAGS) \
|
2004-02-08 07:01:33 +08:00
|
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
|
|
|
$(DEPLIBS)
|
|
|
|
|
2008-10-04 03:27:54 +08:00
|
|
|
color-selector-wheel-$(GIMP_VER).dll : color-selector-wheel.obj
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ color-selector-wheel.obj $(LDFLAGS) \
|
2001-07-29 03:40:07 +08:00
|
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
2003-01-01 21:33:27 +08:00
|
|
|
$(DEPLIBS)
|
|
|
|
|
2008-10-04 03:27:54 +08:00
|
|
|
color-selector-cmyk-$(GIMP_VER).dll : color-selector-cmyk.obj
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ color-selector-cmyk.obj $(LDFLAGS) \
|
|
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
|
|
|
$(DEPLIBS)
|
|
|
|
|
|
|
|
display-filter-color-blind-$(GIMP_VER).dll : display-filter-color-blind.obj
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ display-filter-color-blind.obj $(LDFLAGS) \
|
2003-01-01 21:33:27 +08:00
|
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
2004-08-02 04:51:12 +08:00
|
|
|
..\libgimpmodule\gimpmodule-$(GIMP_VER).lib \
|
2003-01-01 21:33:27 +08:00
|
|
|
$(DEPLIBS)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
2008-10-04 03:27:54 +08:00
|
|
|
display-filter-gamma-$(GIMP_VER).dll : display-filter-gamma.obj
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ display-filter-gamma.obj $(LDFLAGS) \
|
2002-03-28 08:10:56 +08:00
|
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
2003-01-01 21:33:27 +08:00
|
|
|
$(DEPLIBS)
|
2000-05-05 02:41:22 +08:00
|
|
|
|
2008-10-04 03:27:54 +08:00
|
|
|
display-filter-high-contrast-$(GIMP_VER).dll : display-filter-high-contrast.obj
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ display-filter-high-contrast.obj $(LDFLAGS) \
|
2002-03-28 08:10:56 +08:00
|
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
2003-01-01 21:33:27 +08:00
|
|
|
$(DEPLIBS)
|
2000-05-05 02:41:22 +08:00
|
|
|
|
2008-10-04 03:27:54 +08:00
|
|
|
display-filter-lcms-$(GIMP_VER).dll : display-filter-lcms.obj
|
|
|
|
$(CC) $(CFLAGS) $(LCMS_CFLAGS) -LD -Fe$@ display-filter-lcms.obj $(LDFLAGS) \
|
2006-05-14 01:05:15 +08:00
|
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
2007-08-27 02:59:34 +08:00
|
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
2006-05-14 01:05:15 +08:00
|
|
|
..\libgimpconfig\gimpconfig-$(GIMP_VER).lib \
|
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
2007-08-27 02:59:34 +08:00
|
|
|
$(DEPLIBS) $(LCMS_LIBS) user32.lib gdi32.lib
|
2006-05-14 01:05:15 +08:00
|
|
|
|
2008-10-04 03:27:54 +08:00
|
|
|
display-filter-proof-$(GIMP_VER).dll : display-filter-proof.obj
|
|
|
|
$(CC) $(CFLAGS) $(LCMS_CFLAGS) -LD -Fe$@ display-filter-proof.obj $(LDFLAGS) \
|
2006-05-14 01:05:15 +08:00
|
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
|
|
..\libgimpconfig\gimpconfig-$(GIMP_VER).lib \
|
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
|
|
|
$(DEPLIBS) $(LCMS_LIBS)
|
|
|
|
|
1999-03-07 20:56:03 +08:00
|
|
|
# General rule for building
|
|
|
|
.c.obj:
|
2007-12-09 22:11:09 +08:00
|
|
|
$(CC) $(CFLAGS) $(LCMS_CFLAGS) -c $<
|
1999-03-07 20:56:03 +08:00
|
|
|
|
2001-07-29 03:40:07 +08:00
|
|
|
clean::
|
1999-07-15 00:02:32 +08:00
|
|
|
del *.dll
|
1999-03-07 20:56:03 +08:00
|
|
|
del *.lib
|
|
|
|
del *.obj
|
|
|
|
del *.exp
|
|
|
|
del *.err
|
|
|
|
del *.map
|
|
|
|
del *.sym
|
|
|
|
del *.pdb
|
|
|
|
del *.ilk
|