Update. Don't mention pthreads.
[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=g_log_domain_glib -DG_ENABLE_DEBUG -DDLL_EXPORT
16 DEPCFLAGS = $(INTL_CFLAGS) $(LIBICONV_CFLAGS)
17
18 all :                           \
19         ../config.h             \
20         ../glibconfig.h         \
21         glib-@GLIB_VERSION@.dll \
22         gspawn-win32-helper.exe
23
24 glib_OBJECTS =                  \
25         garray.o                \
26         gasyncqueue.o           \
27         gbacktrace.o            \
28         gcache.o                \
29         gcompletion.o           \
30         gconvert.o              \
31         gdataset.o              \
32         gdate.o                 \
33         gerror.o                \
34         gfileutils.o            \
35         ghash.o                 \
36         ghook.o                 \
37         giochannel.o            \
38         giowin32.o              \
39         glist.o                 \
40         gmain.o                 \
41         gmarkup.o               \
42         gmem.o                  \
43         gmessages.o             \
44         gnode.o                 \
45         gpattern.o              \
46         gprimes.o               \
47         gqsort.o                \
48         gqueue.o                \
49         grand.o                 \
50         grel.o                  \
51         gscanner.o              \
52         gshell.o                \
53         gslist.o                \
54         gspawn-win32.o          \
55         gstrfuncs.o             \
56         gstring.o               \
57         gthread.o               \
58         gthreadpool.o           \
59         gtimer.o                \
60         gtree.o                 \
61         gunibreak.o             \
62         gunicollate.o           \
63         gunidecomp.o            \
64         guniprop.o              \
65         gutf8.o                 \
66         gutils.o                \
67         gwin32.o
68
69 ../glibconfig.h: ../glibconfig.h.win32
70         cp $< $@
71
72 ../config.h: ../config.h.win32
73         cp $< $@
74
75 ifeq ($(wildcard makefile.mingw.in),makefile.mingw.in)
76 makefile.mingw: makefile.mingw.in
77         sed -e 's,@GLIB[_]VERSION@,@GLIB_VERSION@,' <$< >$@
78 endif
79
80 ################ The glib DLL
81
82 glib-@GLIB_VERSION@.dll : $(glib_OBJECTS) glib.def
83         $(BUILD_DLL) glib @GLIB_VERSION@ glib.def $(glib_OBJECTS) $(INTL_LIBS) $(LIBICONV_LIBS) -luser32 -lwsock32
84
85 gspawn-win32-helper.exe : gspawn-win32-helper.c
86         $(CC) $(CFLAGS) -mwindows -DG_LOG_DOMAIN=\"gspawn-win32-helper\" -o $@ $< -L . -lglib
87