Add some more cases to the app-id unit tests
[glib.git] / glib / makefile.msc.in
blobe45b1e510a926b35695c053ba94c2dd7db0627c7
1 ## Makefile for building the GLib dlls with Microsoft C
2 ## Use: nmake -f makefile.msc
4 TOP = ..\..
6 !INCLUDE ..\build\win32\make.msc
8 ################################################################
10 INCLUDES = -FImsvc_recommended_pragmas.h -I . -I ..
11 DEFINES = \
12         -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\" \
13         -DG_ENABLE_DEBUG -DPCRE_STATIC -DG_DISABLE_DEPRECATED \
14         -DDLL_EXPORT=1
16 DEPCFLAGS = -Zm400 $(INTL_CFLAGS) $(DIRENT_CFLAGS)
18 all :                           \
19         ..\config.h             \
20         ..\glibconfig.h \
21         gnulib\gnulib.lib       \
22         pcre\pcre.lib           \
23         libglib-2.0-0.dll \
24         glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
25         gspawn-win32-helper.exe \
26         gspawn-win32-helper-console.exe \
29 gnulib\gnulib.lib :
30         cd gnulib
31         nmake -f makefile.msc
32         cd ..
34 pcre\pcre.lib :
35         cd pcre
36         nmake -f makefile.msc
37         cd ..
39 glib_OBJECTS =                  \
40         garray.obj              \
41         gasyncqueue.obj         \
42         gatomic.obj     \
43         gbacktrace.obj          \
44         gbase64.obj     \
45         gbookmarkfile.obj \
46         gcache.obj \
47         gchecksum.obj   \
48         gcompletion.obj \
49         gconvert.obj \
50         gdataset.obj \
51         gdate.obj \
52         gdir.obj \
53         gerror.obj \
54         gfileutils.obj \
55         ghash.obj \
56         ghostutils.obj \
57         ghook.obj \
58         giochannel.obj \
59         giowin32.obj \
60         gpoll.obj \
61         gkeyfile.obj \
62         glist.obj \
63         gmain.obj \
64         gmappedfile.obj \
65         gmarkup.obj \
66         gmem.obj \
67         gmessages.obj \
68         gnode.obj \
69         goption.obj \
70         gpattern.obj \
71         gprimes.obj \
72         gprintf.obj \
73         gqsort.obj \
74         gqueue.obj \
75         grand.obj \
76         gregex.obj \
77         grel.obj \
78         gscanner.obj \
79         gsequence.obj \
80         gshell.obj \
81         gslice.obj \
82         gslist.obj \
83         gspawn-win32.obj \
84         gstdio.obj \
85         gstrfuncs.obj \
86         gstring.obj \
87         gtestutils.obj \
88         gthread.obj \
89         gthreadpool.obj \
90         gtimer.obj \
91         gtree.obj \
92         gunibreak.obj \
93         gunicollate.obj \
94         gunidecomp.obj \
95         guniprop.obj \
96         gurifuncs.obj \
97         gutf8.obj               \
98         gutils.obj              \
99         gwin32.obj              \
100         localcharset.obj
102 ..\glibconfig.h: ..\glibconfig.h.win32
103         copy ..\glibconfig.h.win32 ..\glibconfig.h
105 ..\config.h: ..\config.h.win32
106         copy ..\config.h.win32 ..\config.h
108 localcharset.obj : libcharset\localcharset.c
109         $(CC) $(CFLAGS) -DLIBDIR=\".\" -c libcharset\localcharset.c
111 glib.def: glib.symbols
112         echo EXPORTS > glib.def
113         cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \
114                 -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
115                 -DG_GNUC_PRINTF=;G_GNUC_PRINTF -DG_GNUC_FORMAT=;G_GNUC_FORMAT glib.symbols >> glib.def
117 glib.res : glib.rc
118         rc -DBUILDNUMBER=0 -r -fo glib.res glib.rc
120 ################ glib
122 # create a static libary
123 # static library can well have the real version number in the name
124 glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(glib_OBJECTS) gnulib\gnulib.lib pcre\pcre.lib
125         lib /out:glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib $(glib_OBJECTS) gnulib\gnulib.lib pcre\pcre.lib
127 libglib-2.0-0.dll : $(glib_OBJECTS) gnulib\gnulib.lib pcre\pcre.lib glib.def glib.res
128         $(CC) $(CFLAGS) -LD -Fe$@ $(glib_OBJECTS) glib.res $(INTL_LIBS) \
129         gnulib\gnulib.lib pcre\pcre.lib $(DIRENT_LIBS) user32.lib advapi32.lib shell32.lib wsock32.lib ole32.lib ws2_32.lib winmm.lib \
130         $(LDFLAGS) /implib:glib-2.0.lib /def:glib.def
132 gspawn-win32-helper.exe : gspawn-win32-helper.c libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
133         $(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-2.0.lib $(LDFLAGS) /subsystem:windows user32.lib
135 gspawn-win32-helper-console.exe : gspawn-win32-helper.c libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
136         $(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-2.0.lib $(LDFLAGS) /subsystem:console user32.lib
138 ################ other stuff
140 clean::
141         del ..\config.h
142         del ..\glibconfig.h