Cache getenv("G_BROKEN_FILENAMES") in have_broken_filenames() and use
[platform/upstream/glib.git] / glib / makefile.msc.in
1 ## Makefile for building the GLib dlls with Microsoft C
2 ## Use: nmake -f makefile.msc
3
4 TOP = ..\..
5
6 !INCLUDE ..\build\win32\make.msc
7
8 ################################################################
9
10 INCLUDES = -FImsvc_recommended_pragmas.h -I . -I ..
11 DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG
12 DEPCFLAGS = -Zm400 $(INTL_CFLAGS) $(LIBICONV_CFLAGS) $(DIRENT_CFLAGS)
13
14 all :                           \
15         ..\config.h             \
16         ..\glibconfig.h \
17         libglib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll \
18         glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
19         gspawn-win32-helper.exe \
20
21 glib_OBJECTS =                  \
22         garray.obj              \
23         gasyncqueue.obj         \
24         gbacktrace.obj          \
25         gbsearcharray.obj       \
26         gcache.obj              \
27         gcompletion.obj         \
28         gconvert.obj            \
29         gdataset.obj            \
30         gdate.obj               \
31         gdir.obj        \
32         gerror.obj              \
33         gfileutils.obj          \
34         ghash.obj               \
35         ghook.obj               \
36         giochannel.obj          \
37         giowin32.obj            \
38         glist.obj               \
39         gmain.obj               \
40         gmarkup.obj             \
41         gmem.obj                \
42         gmessages.obj           \
43         gnode.obj               \
44         gprimes.obj             \
45         gqsort.obj              \
46         gqueue.obj              \
47         gpattern.obj    \
48         grand.obj               \
49         grel.obj                \
50         gscanner.obj            \
51         gshell.obj              \
52         gslist.obj              \
53         gspawn-win32.obj        \
54         gstrfuncs.obj           \
55         gstring.obj             \
56         gthread.obj             \
57         gthreadpool.obj         \
58         gtimer.obj              \
59         gtree.obj               \
60         gunibreak.obj           \
61         gunicollate.obj         \
62         gunidecomp.obj          \
63         guniprop.obj            \
64         gutf8.obj               \
65         gutils.obj              \
66         gwin32.obj              \
67         localcharset.obj
68
69 ..\glibconfig.h: ..\glibconfig.h.win32
70         copy ..\glibconfig.h.win32 ..\glibconfig.h
71
72 ..\config.h: ..\config.h.win32
73         copy ..\config.h.win32 ..\config.h
74
75 localcharset.c : libcharset/localcharset.c
76         copy libcharset\localcharset.c localcharset.c
77
78 ################ glib
79
80 # create a static libary
81 glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(glib_OBJECTS)
82         lib /out:glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib $(glib_OBJECTS)
83
84 libglib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll : $(glib_OBJECTS) glib.def
85         $(CC) $(CFLAGS) -LD -Fe$@ $(glib_OBJECTS) $(LIBICONV_LIBS) $(INTL_LIBS) $(DIRENT_LIBS) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /implib:glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib /def:glib.def
86
87 gspawn-win32-helper.exe : gspawn-win32-helper.c libglib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
88         $(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS) /subsystem:windows user32.lib
89
90 ################ other stuff
91
92 clean::
93         del ..\config.h
94         del ..\glibconfig.h