makefile.msc 2.08 KB
Newer Older
1 2
# autogenerated from automake.am with automake.py
# and slightly modified
3
TOP = ..\..
4 5 6
PRJ_TOP = ..
PACKAGE = gimpbase
PKG_VER = 1.3
7
!INCLUDE $(TOP)\glib\build\win32\make.msc
8 9 10

# The name of the directory in your %HOME% where the GIMP's personal settings
# and stuff is saved.
11
GIMPDIR = _gimp$(PKG_VER)
12 13
DEFINES = -DGIMPDIR=\"$(GIMPDIR)\" -DDATADIR=\"\" -DSYSCONFDIR=\"\" \
	-DPLUGINDIR=\"plug-ins\" -DLOCALEDIR=\"locale\"
14 15 16 17 18 19

top_srcdir = $(PRJ_TOP)
top_builddir = $(PRJ_TOP)
includedir = $(PRJ_TOP)
LT_RELEASE = $(PKG_VER)
INCLUDES = \
20
	-FImsvc_recommended_pragmas.h \
21 22 23 24 25 26 27
	-I$(top_srcdir) \
	-I$(top_srcdir)/intl \
	-I../intl \
	$(GLIB_CFLAGS) \
	-I$(includedir) \

PKG_LINK = \
Hans Breuer's avatar
Hans Breuer committed
28
	$(GLIB_LIBS) $(INTL_LIBS)
29 30 31

OBJECTS = \
	gimpenv.obj \
Hans Breuer's avatar
Hans Breuer committed
32
	gimpdatafiles.obj \
33
	gimpsignal.obj \
34 35 36
	gimpparasite.obj \
	gimpparasiteio.obj \
	gimpprotocol.obj \
37
	gimputils.obj \
38
	gimpwire.obj \
39

40 41
lib_LTLIBRARIES = \
	libgimpbase-1.3.la
42

43 44
libgimpbase_1_3_la_LIBADD = \
	$(GLIB_LIBS)
45

46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
libgimpbaseincludedir = \
	$(includedir)/gimp-$(LT_RELEASE)/libgimpbase

EXTRA_DIST = \
	gimpversion.h.in \
	makefile.mingw \
	makefile.mingw.in \
	makefile.msc \
	gimpbase.def

libgimpbase_1_3_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)

libgimpbaseinclude_HEADERS = \
	gimpbase.h \
	gimpbasetypes.h \
	gimpenv.h \
	gimplimits.h \
	gimpsignal.h \
	gimputils.h \
	gimpparasite.h \
	gimpparasiteio.h \
	gimpunit.h \
	gimpversion.h
70 71

all : \
72 73
	$(PRJ_TOP)\config.h \
	$(PACKAGE)-$(PKG_VER).dll
74 75


76 77
$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
	copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
78

79 80 81 82 83 84 85
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
86

87 88 89
$(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
90

91 92
.c.obj :
	$(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<