Updated Catalan translation.
[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 -DPCRE_STATIC
12 DEPCFLAGS = -Zm400 $(INTL_CFLAGS) $(LIBICONV_CFLAGS) $(DIRENT_CFLAGS)
13
14 all :                           \
15         ..\config.h             \
16         ..\glibconfig.h \
17         galias.h                \
18         galiasdef.c             \
19         gnulib\gnulib.lib       \
20         pcre\pcre.lib           \
21         libglib-2.0-0.dll \
22         glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
23         gspawn-win32-helper.exe \
24
25
26 gnulib\gnulib.lib :
27         cd gnulib
28         nmake -f makefile.msc
29         cd ..
30
31 pcre\pcre.lib :
32         cd pcre
33         nmake -f makefile.msc
34         cd ..
35
36 glib_OBJECTS =                  \
37         garray.obj              \
38         gasyncqueue.obj         \
39         gatomic.obj     \
40         gbacktrace.obj          \
41         gbase64.obj     \
42         gbookmarkfile.obj       \
43         gcache.obj              \
44         gcompletion.obj         \
45         gconvert.obj            \
46         gdataset.obj            \
47         gdate.obj               \
48         gdir.obj        \
49         gerror.obj              \
50         gfileutils.obj          \
51         ghash.obj               \
52         ghook.obj               \
53         gkeyfile.obj            \
54         gmappedfile.obj \
55         giochannel.obj          \
56         giowin32.obj            \
57         glist.obj               \
58         gmain.obj               \
59         gmarkup.obj             \
60         gmem.obj                \
61         gmessages.obj           \
62         gnode.obj               \
63         goption.obj     \
64         gprimes.obj             \
65         gqsort.obj              \
66         gqueue.obj              \
67         gpattern.obj    \
68         gprintf.obj     \
69         grand.obj               \
70         gregex.obj              \
71         grel.obj                \
72         gscanner.obj            \
73         gsequence.obj   \
74         gshell.obj              \
75         gslice.obj      \
76         gslist.obj              \
77         gspawn-win32.obj        \
78         gstdio.obj      \
79         gstrfuncs.obj           \
80         gstring.obj             \
81         gthread.obj             \
82         gthreadpool.obj         \
83         gtimer.obj              \
84         gtree.obj               \
85         gunibreak.obj           \
86         gunicollate.obj         \
87         gunidecomp.obj          \
88         guniprop.obj            \
89         gutf8.obj               \
90         gutils.obj              \
91         gwin32.obj              \
92         localcharset.obj
93
94 ..\glibconfig.h: ..\glibconfig.h.win32
95         copy ..\glibconfig.h.win32 ..\glibconfig.h
96
97 ..\config.h: ..\config.h.win32
98         copy ..\config.h.win32 ..\config.h
99
100 galias.h: glib.symbols
101         perl makegalias.pl < glib.symbols > galias.h
102
103 galiasdef.c: glib.symbols
104           perl makegalias.pl -def < glib.symbols > galiasdef.c
105
106 localcharset.c : libcharset/localcharset.c
107         copy libcharset\localcharset.c localcharset.c
108
109 glib.def: glib.symbols
110         echo EXPORTS > glib.def
111         cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \
112                 -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
113                 -DG_GNUC_PRINTF=;G_GNUC_PRINTF glib.symbols >> glib.def
114
115 glib.res : glib.rc
116         rc -DBUILDNUMBER=0 -r -fo glib.res glib.rc
117
118 ################ glib
119
120 # create a static libary
121 # static library can well have the real version number in the name
122 glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(glib_OBJECTS) gnulib\gnulib.lib pcre\pcre.lib
123         lib /out:glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib $(glib_OBJECTS) gnulib\gnulib.lib pcre\pcre.lib
124
125 libglib-2.0-0.dll : $(glib_OBJECTS) gnulib\gnulib.lib pcre\pcre.lib glib.def glib.res
126         $(CC) $(CFLAGS) -LD -Fe$@ $(glib_OBJECTS) glib.res $(LIBICONV_LIBS) $(INTL_LIBS) \
127         gnulib\gnulib.lib pcre\pcre.lib $(DIRENT_LIBS) user32.lib advapi32.lib shell32.lib wsock32.lib ole32.lib ws2_32.lib \
128         $(LDFLAGS) /implib:glib-2.0.lib /def:glib.def
129
130 gspawn-win32-helper.exe : gspawn-win32-helper.c libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
131         $(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-2.0.lib $(LDFLAGS) /subsystem:windows user32.lib
132
133 ################ other stuff
134
135 clean::
136         del ..\config.h
137         del ..\glibconfig.h
138