makefile.msc 3.26 KB
Newer Older
1 2 3 4 5 6 7 8
# autogenerated from automake.am with automake.py
TOP = ..\..\..
PRJ_TOP = ..\..
PACKAGE = appcore
PKG_VER = 1.3
!INCLUDE $(TOP)\build\win32\make.msc

PKG_LINK = \
9
	$(GLIB_LIBS) $(DIRENT_LIBS) $(GTK2_LIBS) $(INTL_LIBS) \
10 11
	..\base\appbase-$(PKG_VER).lib \
	..\paint-funcs\apppaint-funcs-$(PKG_VER).lib \
12
	..\xcf\xcf.lib \
13
	..\..\libgimpbase\gimpbase-$(PKG_VER).lib \
Hans Breuer's avatar
Hans Breuer committed
14 15
	..\..\libgimpcolor\gimpcolor-$(PKG_VER).lib \
	..\..\libgimpwidgets\gimpwidgets-$(PKG_VER).lib
16 17

OBJECTS = \
Hans Breuer's avatar
Hans Breuer committed
18
	gimp.obj \
19 20 21
	gimpbrush.obj \
	gimpbrushgenerated.obj \
	gimpbrushpipe.obj \
Hans Breuer's avatar
Hans Breuer committed
22
	gimpbuffer.obj \
23 24 25
	gimpchannel.obj \
	gimpcontainer.obj \
	gimpcontext.obj \
Hans Breuer's avatar
Hans Breuer committed
26
	gimpcoreconfig.obj \
27 28
	gimpdata.obj \
	gimpdatafactory.obj \
Hans Breuer's avatar
Hans Breuer committed
29
	gimpdatafiles.obj \
30
	gimpdatalist.obj \
Hans Breuer's avatar
Hans Breuer committed
31
	gimpdocuments.obj \
32 33 34 35 36 37 38
	gimpdrawable.obj \
	gimpdrawable-desaturate.obj \
	gimpdrawable-equalize.obj \
	gimpdrawable-histogram.obj \
	gimpdrawable-invert.obj \
	gimpdrawable-offset.obj \
	gimpdrawable-preview.obj \
Hans Breuer's avatar
Hans Breuer committed
39
	gimpedit.obj \
40 41 42
	gimpgradient.obj \
	gimpimage.obj \
	gimpimage-colorhash.obj \
43
	gimpimage-contiguous-region.obj \
Hans Breuer's avatar
Hans Breuer committed
44 45
	gimpimage-convert.obj \
	gimpimage-crop.obj \
46 47
	gimpimage-duplicate.obj \
	gimpimage-mask.obj \
48
	gimpimage-mask-select.obj \
Hans Breuer's avatar
Hans Breuer committed
49
	gimpimage-new.obj \
50
	gimpimage-undo.obj \
Hans Breuer's avatar
Hans Breuer committed
51
	gimpimagefile.obj \
52 53 54 55
	gimplayer.obj \
	gimplayermask.obj \
	gimplist.obj \
	gimpmarshal.obj \
56 57
	gimpmoduleinfo.obj \
	gimpmodules.obj \
58 59 60
	gimpobject.obj \
	gimppalette.obj \
	gimppalette-import.obj \
Hans Breuer's avatar
Hans Breuer committed
61 62 63
	gimpparasite.obj \
	gimpparasitelist.obj \
	gimppattern.obj \
64
	gimppreviewcache.obj \
Hans Breuer's avatar
Hans Breuer committed
65
	gimpscanconvert.obj \
66 67 68
	gimptoolinfo.obj \
	gimpundo.obj \
	gimpundostack.obj \
Hans Breuer's avatar
Hans Breuer committed
69
	gimpunit.obj \
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
	gimpviewable.obj \

OTHER_FILES = \
	\
	..\floating_sel.obj \
	..\gimpparasite.obj \
	..\parasitelist.obj \
	..\drawable.obj \
	..\datafiles.obj \
	..\undo.obj \
	..\path.obj



INCLUDES = \
85 86 87
	-I$(PRJ_TOP) \
	-I$(PRJ_TOP)/app \
	$(DIRENT_CFLAGS) $(GTK2_CFLAGS) \
88 89 90

all : \
	$(PRJ_TOP)\config.h \
Hans Breuer's avatar
Hans Breuer committed
91 92
	gimpmarshal.h \
	gimpmarshal.c \
93
	$(PACKAGE).lib \
94
!IFDEF DLLGIMP
95
	$(PACKAGE)-$(PKG_VER).dll
96
!ENDIF
97

Hans Breuer's avatar
Hans Breuer committed
98 99 100 101 102 103 104 105 106 107 108 109 110
gimpmarshal.h : gimpmarshal.list
	echo #ifndef __GIMP_MARSHAL_H__ > xgen-gmh
	echo #define __GIMP_MARSHAL_H__ >> xgen-gmh
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_cclosure_marshal gimpmarshal.list --header >> xgen-gmh
	echo #endif /* __GIMP_MARSHAL_H__ */ >> xgen-gmh
	copy xgen-gmh gimpmarshal.h

gimpmarshal.c : gimpmarshal.h gimpmarshal.list
	echo #include "glib.h" > xgen-gmc
	echo #include "glib-object.h" >> xgen-gmc
	echo #include "gimpmarshal.h" >> xgen-gmc
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_cclosure_marshal gimpmarshal.list --body >> xgen-gmc
	copy xgen-gmc gimpmarshal.c
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128

$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
	copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h

RESOURCE = $(PACKAGE).res

$(PACKAGE).lib : $(OBJECTS)
	lib /out:$(PACKAGE).lib $(OBJECTS)

$(PACKAGE)-$(PKG_VER).dll : $(OBJECTS) $(PACKAGE).def
	$(CC) $(CFLAGS) -LD -Fe$(PACKAGE)-$(PKG_VER).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def

$(PACKAGE).exe : $(OBJECTS) $(PACKAGE).def $(PACKAGE).res
	$(CC) $(CFLAGS) -Fe$(PACKAGE).exe $(PACKAGE).res $(OBJECTS) $(PKG_LINK) \
	user32.lib advapi32.lib shell32.lib wsock32.lib winspool.lib $(LDFLAGS) /def:$(PACKAGE).def

.c.obj :
	$(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<
Hans Breuer's avatar
Hans Breuer committed
129 130 131 132

clean ::
	del gimpmarshal.c
	del gimpmarshal.h