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
|
|
|
|
2000-12-01 16:11:54 +01:00
|
|
|
!INCLUDE ..\build\win32\make.msc
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
# Possibly override GLib version in build\win32\module.defs
|
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
################################################################
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
# Nothing much configurable below
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2001-03-29 22:05:58 +02:00
|
|
|
INCLUDES = -I .. -I ../gmodule
|
2000-10-27 22:43:42 +02:00
|
|
|
DEFINES = -DHAVE_CONFIG_H
|
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 \
|
1999-04-13 23:05:08 +02:00
|
|
|
hash-test.exe \
|
|
|
|
list-test.exe \
|
2001-01-06 04:09:46 +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 \
|
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-03-29 22:05:58 +02:00
|
|
|
unicode-encoding.exe \
|
|
|
|
libmoduletestplugin_a.dll \
|
|
|
|
libmoduletestplugin_b.dll
|
1999-04-13 23:05:08 +02:00
|
|
|
|
|
|
|
all : $(TESTS)
|
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
makefile.msc: makefile.msc.in
|
|
|
|
$(SED) -e s,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@, \
|
|
|
|
-e s,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@, <makefile.msc.in >$@
|
|
|
|
|
1999-04-13 23:05:08 +02:00
|
|
|
.c.exe :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
2000-10-06 23:32:59 +02:00
|
|
|
$(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib ..\gmodule\gmodule-$(GLIB_VER).lib ..\gthread\gthread-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2001-03-29 22:05:58 +02:00
|
|
|
libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
|
|
|
|
$(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-$(GLIB_VER).lib ..\glib-$(GLIB_VER).lib $(LDFLAGS)
|
|
|
|
|
|
|
|
libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
|
|
|
|
$(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-$(GLIB_VER).lib ..\glib-$(GLIB_VER).lib $(LDFLAGS)
|
|
|
|
|
1999-04-13 23:05:08 +02:00
|
|
|
check: all
|
|
|
|
for %p in ($(TESTS)) do %p
|