1999-04-13 23:05:08 +02:00
|
|
|
## Makefile for building the GLib test programs with Microsoft C
|
1999-04-24 15:52:51 +02:00
|
|
|
## Use: nmake -f makefile.msc check
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
TOP = ..\..
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2001-10-26 01:40:38 +02:00
|
|
|
!INCLUDE ..\build\win32\make.msc
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
################################################################
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2002-01-05 19:54:59 +01:00
|
|
|
INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I ..\glib -I ..\gmodule
|
2000-10-27 22:43:42 +02:00
|
|
|
DEFINES = -DHAVE_CONFIG_H
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2001-10-26 01:40:38 +02:00
|
|
|
NONAUTOMATIC_TESTS = \
|
|
|
|
testglib.exe \
|
|
|
|
testgdate.exe \
|
|
|
|
testgdateparser.exe \
|
|
|
|
patterntest.exe \
|
|
|
|
unicode-normalize.exe \
|
|
|
|
unicode-collate.exe
|
|
|
|
|
1999-04-13 23:05:08 +02:00
|
|
|
TESTS = \
|
|
|
|
array-test.exe \
|
|
|
|
date-test.exe \
|
|
|
|
dirname-test.exe\
|
2000-10-06 23:43:25 +02:00
|
|
|
gio-test.exe \
|
2001-11-18 16:30:53 +01:00
|
|
|
iochannel-test.exe \
|
1999-04-13 23:05:08 +02:00
|
|
|
hash-test.exe \
|
|
|
|
list-test.exe \
|
2001-11-15 00:41:54 +01:00
|
|
|
mainloop-test.exe \
|
2000-10-27 22:43:42 +02:00
|
|
|
markup-test.exe \
|
2001-03-29 22:05:58 +02:00
|
|
|
module-test.exe \
|
1999-04-13 23:05:08 +02:00
|
|
|
node-test.exe \
|
|
|
|
queue-test.exe \
|
|
|
|
rand-test.exe \
|
|
|
|
relation-test.exe\
|
Some more debugging output. (g_io_channel_win32_poll): Remove unused vars.
2000-10-16 Tor Lillqvist <tml@iki.fi>
* giowin32.c (reader_thread): Some more debugging output.
(g_io_channel_win32_poll): Remove unused vars.
* gfileutils.c: Changes for Win32, with no unistd.h and no
S_ISLNK().
* gspawn-win32.c: Implementation of the g_spwan_* functions for
Win32. Due to the general non-Unixness of Win32, much of the
functionality that is relatively clean to implement on Unix, is
hard to do on Win32. We must use a separate helper program to
change directory, close extra file descriptors, redirect the std
ones, as needed, and only then start the child process. No child
process pid can be returned, unfortunately. Or if we used
CreateProcess directly, it probably could. (Now we use the spawnv*
functions from msvcrt.)
* glib.def: Add new entry points.
* glib.def
* giowin32.c: Remove g_io_channel_win32_wait_for_condition(),
g_io_channel_win32_poll() subsumes it.
* gbacktrace.h: G_BREAKPOINT for MSVC (on the ix86).
* gwin32.c (g_win32_getlocale): Use "sp" for
LANG_CROATIAN+SUBLANG_SERBIAN_LATIN.
* makefile.{mingw,msc}.in (glib_OBJECTS): Add new files.
Add gspawn-win32-helper.exe rule.
* tests/makefile.{mingw,msc}.in (TESTS): Add shell-test and
spawn-test.
* tests/spawn-test.c: (run_tests): On Win32, don't try to run
/bin/sh, but ipconfig (no special significance in choosing that,
just a program that outputs something to stdout).
2000-10-16 20:54:29 +02:00
|
|
|
shell-test.exe \
|
1999-04-13 23:05:08 +02:00
|
|
|
slist-test.exe \
|
Some more debugging output. (g_io_channel_win32_poll): Remove unused vars.
2000-10-16 Tor Lillqvist <tml@iki.fi>
* giowin32.c (reader_thread): Some more debugging output.
(g_io_channel_win32_poll): Remove unused vars.
* gfileutils.c: Changes for Win32, with no unistd.h and no
S_ISLNK().
* gspawn-win32.c: Implementation of the g_spwan_* functions for
Win32. Due to the general non-Unixness of Win32, much of the
functionality that is relatively clean to implement on Unix, is
hard to do on Win32. We must use a separate helper program to
change directory, close extra file descriptors, redirect the std
ones, as needed, and only then start the child process. No child
process pid can be returned, unfortunately. Or if we used
CreateProcess directly, it probably could. (Now we use the spawnv*
functions from msvcrt.)
* glib.def: Add new entry points.
* glib.def
* giowin32.c: Remove g_io_channel_win32_wait_for_condition(),
g_io_channel_win32_poll() subsumes it.
* gbacktrace.h: G_BREAKPOINT for MSVC (on the ix86).
* gwin32.c (g_win32_getlocale): Use "sp" for
LANG_CROATIAN+SUBLANG_SERBIAN_LATIN.
* makefile.{mingw,msc}.in (glib_OBJECTS): Add new files.
Add gspawn-win32-helper.exe rule.
* tests/makefile.{mingw,msc}.in (TESTS): Add shell-test and
spawn-test.
* tests/spawn-test.c: (run_tests): On Win32, don't try to run
/bin/sh, but ipconfig (no special significance in choosing that,
just a program that outputs something to stdout).
2000-10-16 20:54:29 +02:00
|
|
|
spawn-test.exe \
|
2000-10-06 23:43:25 +02:00
|
|
|
# strfunc-test doesn't compile with MSVC
|
2000-10-06 23:32:59 +02:00
|
|
|
# strfunc-test.exe\
|
1999-07-31 23:45:21 +02:00
|
|
|
string-test.exe \
|
2001-10-26 01:40:38 +02:00
|
|
|
strtod-test.exe \
|
1999-06-21 00:20:43 +02:00
|
|
|
thread-test.exe \
|
2000-05-01 23:13:02 +02:00
|
|
|
threadpool-test.exe\
|
1999-04-13 23:05:08 +02:00
|
|
|
tree-test.exe \
|
2001-01-06 04:09:46 +01:00
|
|
|
type-test.exe \
|
2001-10-26 01:40:38 +02:00
|
|
|
unicode-caseconv.exe \
|
2002-02-10 17:42:36 +01:00
|
|
|
unicode-encoding.exe \
|
|
|
|
uri-test.exe
|
2001-10-26 01:40:38 +02:00
|
|
|
|
|
|
|
DLLS = \
|
2001-03-29 22:05:58 +02:00
|
|
|
libmoduletestplugin_a.dll \
|
|
|
|
libmoduletestplugin_b.dll
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2001-10-26 01:40:38 +02:00
|
|
|
all : $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
|
1999-04-13 23:05:08 +02:00
|
|
|
|
|
|
|
.c.exe :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF,
2001-09-25 Tor Lillqvist <tml@iki.fi>
* configure.in: More Win32 automake macros. For .def files:
GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
files: TESTGMODULE_EXP (for programs that need to export symbols,
just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
test whether the Microsoft librarian ("ar") is available to build
MS import libraries.
* glib/Makefile.am
* gmodule/Makefile.am: Use above. New rule to build MS import
library.
* glib/makefile.msc.in
* tests/makefile.msc.in
* tests/makefile.mingw.in: Use same DLL and import library names as
libtool.
gmodule:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* makefile.mingw.in: Fix missing end @ in @LT_CURRENT@.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gobject:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gthread:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
2001-09-25 08:03:23 +02:00
|
|
|
$(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gthread\gthread-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS) user32.lib /subsystem:console
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2001-03-29 22:05:58 +02:00
|
|
|
libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
|
More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF,
2001-09-25 Tor Lillqvist <tml@iki.fi>
* configure.in: More Win32 automake macros. For .def files:
GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
files: TESTGMODULE_EXP (for programs that need to export symbols,
just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
test whether the Microsoft librarian ("ar") is available to build
MS import libraries.
* glib/Makefile.am
* gmodule/Makefile.am: Use above. New rule to build MS import
library.
* glib/makefile.msc.in
* tests/makefile.msc.in
* tests/makefile.mingw.in: Use same DLL and import library names as
libtool.
gmodule:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* makefile.mingw.in: Fix missing end @ in @LT_CURRENT@.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gobject:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gthread:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
2001-09-25 08:03:23 +02:00
|
|
|
$(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)
|
2001-03-29 22:05:58 +02:00
|
|
|
|
|
|
|
libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
|
More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF,
2001-09-25 Tor Lillqvist <tml@iki.fi>
* configure.in: More Win32 automake macros. For .def files:
GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
files: TESTGMODULE_EXP (for programs that need to export symbols,
just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
test whether the Microsoft librarian ("ar") is available to build
MS import libraries.
* glib/Makefile.am
* gmodule/Makefile.am: Use above. New rule to build MS import
library.
* glib/makefile.msc.in
* tests/makefile.msc.in
* tests/makefile.mingw.in: Use same DLL and import library names as
libtool.
gmodule:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* makefile.mingw.in: Fix missing end @ in @LT_CURRENT@.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gobject:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gthread:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
2001-09-25 08:03:23 +02:00
|
|
|
$(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)
|
2001-03-29 22:05:58 +02:00
|
|
|
|
1999-04-13 23:05:08 +02:00
|
|
|
check: all
|
2001-10-26 01:50:50 +02:00
|
|
|
for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p
|