Hardcode 2.0 in the names, as that is what Makefile.am does.
[platform/upstream/glib.git] / glib / makefile.mingw.in
1 ## Makefile for building the GLib DLL with gcc for mingw. The build
2 ## uses tools running on cygwin, however.
3
4 ## Use: make -f makefile.mingw
5
6 TOP = ../..
7
8 include ../build/win32/make.mingw
9
10 ################################################################
11
12 # Nothing much configurable below
13
14 INCLUDES = -I . -I .. 
15 DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DDLL_EXPORT
16 DEPCFLAGS = $(INTL_CFLAGS) $(LIBICONV_CFLAGS)
17
18 all :                           \
19         ../config.h             \
20         ../glibconfig.h         \
21         libglib-2.0.a \
22         gspawn-win32-helper.exe
23
24 glib_OBJECTS =                  \
25         garray.o                \
26         gasyncqueue.o           \
27         gbacktrace.o            \
28         gbsearcharray.o         \
29         gcache.o                \
30         gcompletion.o           \
31         gconvert.o              \
32         gdataset.o              \
33         gdate.o                 \
34         gdir.o                  \
35         gerror.o                \
36         gfileutils.o            \
37         ghash.o                 \
38         ghook.o                 \
39         giochannel.o            \
40         giowin32.o              \
41         glist.o                 \
42         gmain.o                 \
43         gmarkup.o               \
44         gmem.o                  \
45         gmessages.o             \
46         gnode.o                 \
47         gpattern.o              \
48         gprimes.o               \
49         gqsort.o                \
50         gqueue.o                \
51         grand.o                 \
52         grel.o                  \
53         gscanner.o              \
54         gshell.o                \
55         gslist.o                \
56         gspawn-win32.o          \
57         gstrfuncs.o             \
58         gstring.o               \
59         gthread.o               \
60         gthreadpool.o           \
61         gtimer.o                \
62         gtree.o                 \
63         gunibreak.o             \
64         gunicollate.o           \
65         gunidecomp.o            \
66         guniprop.o              \
67         gutf8.o                 \
68         gutils.o                \
69         gwin32.o                \
70         localcharset.o
71
72 ../glibconfig.h: ../glibconfig.h.win32
73         cp $< $@
74
75 ../config.h: ../config.h.win32
76         cp $< $@
77
78 localcharset.c : libcharset/localcharset.c
79         cp $< $@
80
81 ################ The glib DLL
82
83 libglib-2.0.a : $(glib_OBJECTS) glib.def glib-2.0.rc
84         $(BUILD_DLL) glib-2.0 @LT_CURRENT@:@LT_REVISION@:@LT_AGE@ glib.def $(glib_OBJECTS) $(INTL_LIBS) $(LIBICONV_LIBS) -luser32 -lwsock32
85
86 glib-2.0.rc : glib.rc
87         cp $< $@
88
89 gspawn-win32-helper.exe : gspawn-win32-helper.c
90         $(CC) $(CFLAGS) -mwindows -DG_LOG_DOMAIN=\"gspawn-win32-helper\" -o $@ $< -L . -lglib-2.0