makefile.msc 2.14 KB
Newer Older
1 2 3
## Makefile for building the GIMP DLLs and LIBs with Microsoft C.
## Use: nmake -f makefile.msc

4
TOP = ..\..
5
PRJ_TOP = ..
6
!include $(TOP)\glib\build\win32\make.msc
7

8 9
!INCLUDE $(PRJ_TOP)\gimpdefs.msc
PKG_VER = $(GIMP_VER)
10 11 12 13 14

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

# Nothing much configurable below

15 16
INCLUDES = -I.. 
# DEFINES = -DG_LOG_DOMAIN=\"LibGimpWidgets\"
17 18 19
DEPCFLAGS = \
	-FImsvc_recommended_pragmas.h \
	$(GLIB_CFLAGS) $(GTK2_CFLAGS) $(INTL_CFLAGS)
Hans Breuer's avatar
Hans Breuer committed
20
DEPLIBS = $(GLIB_LIBS) $(GTK2_LIBS) $(INTL_LIBS)
21 22 23

all : \
	..\config.h \
Hans Breuer's avatar
Hans Breuer committed
24
	gimpwidgetsmarshal.c \
25
	gimpwidgets-$(GIMP_VER).dll
26 27 28 29 30

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

install : all
31
	$(INSTALL) gimpmath-$(GIMP_VER).dll $(BIN)
32

33
OBJECTS = \
34
	gimpbutton.obj \
35
	gimpchainbutton.obj \
36
	gimpcolorarea.obj \
Hans Breuer's avatar
Hans Breuer committed
37
	gimpcolorbutton.obj \
Hans Breuer's avatar
Hans Breuer committed
38 39 40 41 42
	gimpcolordisplay.obj \
	gimpcolornotebook.obj \
	gimpcolorscale.obj \
	gimpcolorscales.obj \
	gimpcolorselect.obj \
43
	gimpcolorselection.obj \
44
	gimpcolordisplaystack.obj \
Hans Breuer's avatar
Hans Breuer committed
45
	gimpcolorselector.obj \
46
	gimpdialog.obj \
47
	gimpfileentry.obj \
Hans Breuer's avatar
Hans Breuer committed
48
	gimphelpui.obj \
49
	gimpmemsizeentry.obj \
Hans Breuer's avatar
Hans Breuer committed
50
	gimpoffsetarea.obj \
51
	gimppatheditor.obj \
Hans Breuer's avatar
Hans Breuer committed
52
	gimppickbutton.obj \
53 54 55
	gimppixmap.obj \
	gimpquerybox.obj \
	gimpsizeentry.obj \
Hans Breuer's avatar
Hans Breuer committed
56
	gimpstock.obj \
57
	gimpunitmenu.obj \
Hans Breuer's avatar
Hans Breuer committed
58
	gimpwidgets.obj \
Hans Breuer's avatar
Hans Breuer committed
59
	gimpwidgets-private.obj \
Hans Breuer's avatar
Hans Breuer committed
60
	gimpwidgetsmarshal.obj \
61

Hans Breuer's avatar
Hans Breuer committed
62

63 64 65 66 67 68
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

69 70 71
# questionable dependency between libgimpui/libgimpwidgets
gimpunit.obj : ..\app\gimpunit.c
	$(CC) $(CFLAGS) -GD -c ..\app\gimpunit.c
72

73 74 75
gimpwidgets-$(GIMP_VER).dll : $(OBJECTS) gimpwidgets.def
	$(CC) $(CFLAGS) -LD -Fegimpwidgets-$(GIMP_VER).dll $(OBJECTS) \
	..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
76
	..\libgimpbase\gimpbase-$(GIMP_VER).lib \
77
	$(DEPLIBS) $(LDFLAGS) user32.lib /def:gimpwidgets.def
78

79 80
#	..\app\gimp.lib \
#	..\libgimp\gimpui-$(GIMP_VER).lib ..\libgimp\gimp-$(GIMP_VER).lib \