makefile.mingw.in tests/makefile.mingw.in Rename makefile.cygwin(.in) to
[platform/upstream/glib.git] / gobject / makefile.mingw.in
1 ## Makefile for building the gobject DLL with gcc for mingw. The build
2 ## uses tools running on cygwin, however.
3
4 ## Use: make -f makefile.mingw
5
6 GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
7
8 TOP = ../..
9
10 include $(TOP)/build/win32/make.mingw
11
12 ################################################################
13
14 # Nothing much configurable below
15
16 INCLUDES = -I .. -I .
17 DEFINES = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=g_log_domain_gobject
18
19 BUILD_DLL = ../build-dll
20
21 all : \
22         gobject-$(GLIB_VER).dll
23
24 makefile.mingw: makefile.mingw.in
25         sed -e 's,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@,' \
26             -e 's,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@,' <$< >$@
27
28 gobject_OBJECTS = \
29         gvalue.o \
30         gparam.o \
31         gparamspecs.o \
32         genums.o \
33         gobject.o \
34         gtype.o
35
36 gobject-$(GLIB_VER).dll : $(gobject_OBJECTS) gobject.def
37         $(BUILD_DLL) gobject $(GLIB_VER) gobject.def $(gobject_OBJECTS) -L .. -lglib-$(GLIB_VER)