File: makefile.msc

package info (click to toggle)
gimp 2.6.10-1+squeeze4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 128,948 kB
  • ctags: 55,327
  • sloc: ansic: 635,142; lisp: 10,678; sh: 10,420; makefile: 9,729; python: 3,366; perl: 2,713; xml: 1,152; yacc: 554; lex: 339
file content (56 lines) | stat: -rw-r--r-- 1,748 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
## Makefile for building the GIMP DLLs and LIBs with Microsoft C.
## Use: nmake -f makefile.msc

TOP = ..\..
PRJ_TOP = ..
!include $(TOP)\glib\build\win32\make.msc

!INCLUDE $(PRJ_TOP)\gimpdefs.msc
PKG_VER = $(GIMP_VER)

################################################################

# Nothing much configurable below

INCLUDES = -I.. $(GDK_PIXBUF_CFLAGS)
# DEFINES = -DG_LOG_DOMAIN=\"LibGimpThump\"
DEPCFLAGS = \
	-FImsvc_recommended_pragmas.h \
	$(GLIB_CFLAGS) $(GTK2_CFLAGS)

DEPLIBS = $(GLIB_LIBS) $(GDK_PIXBUF_LIBS) $(INTL_LIBS) \
	..\libgimpbase\gimpbase-$(GIMP_VER).lib \
	..\libgimpmath\gimpmath-$(GIMP_VER).lib

all : \
	..\config.h \
	gimpthumb-$(GIMP_VER).dll

..\config.h : ..\config.h.win32
	copy ..\config.h.win32 ..\config.h

install : all
	$(INSTALL) gimpcolor-$(GIMP_VER).dll $(BIN)

OBJECTS = \
	gimpthumb-enums.obj \
	gimpthumb-error.obj \
	gimpthumb-utils.obj \
	gimpthumbnail.obj \
	gimp-thumbnail-list.obj \

!IFNDEF PERL
PERL = perl
!ENDIF

gimpthumb-enums.c: gimpthumb-enums.h
	$(PERL) ..\tools\gimp-mkenums \
	--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"gimpthumb-enums.h\"" \
	--fprod "\n/* enumerations from \"@filename@\" */" \
	--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
	--vprod "  { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
	--vtail "  { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n  static GType enum_type = 0;\n\n  if (!enum_type)\n    enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n  return enum_type;\n}\n" \
	gimpthumb-enums.h > $@
gimpthumb-$(GIMP_VER).dll : $(OBJECTS) gimpthumb.def
	$(CC) $(CFLAGS) -LD -Fegimpthumb-$(GIMP_VER).dll $(OBJECTS) $(DEPLIBS) $(LDFLAGS) user32.lib /def:gimpthumb.def